Flutter_local_notifications: call functions on receive a notification - Help request

Created on 7 Oct 2019  路  3Comments  路  Source: MaikuB/flutter_local_notifications

Hi,
First thing first I want to thank you for this package it really helped me a lot.

Now i'm using scheduled notifications in my app and I want to make it do this on receive a notification (Android & iOS):

  • Get current notification id.
  • Call a function.

Is there's any way to make that happen?
Thank you, have a nice day!

Most helpful comment

Background execution. There are existing open issues on this repo that are blocked for the same reason and one is about a callback when a notification is shown as one. I created an issue in the Flutter repo here

All 3 comments

Thanks, glad to hear that it's helped you. It's not possible to make this happen at the moment (in fact I tried to before) as there are some limitations on the Flutter side. If your use case allows for it, you may need to write your own Android and iOS code to run code when a notification is displayed

Hi @MaikuB, what are the limitations (on the Flutter side) that is preventing implementing this feature?

Background execution. There are existing open issues on this repo that are blocked for the same reason and one is about a callback when a notification is shown as one. I created an issue in the Flutter repo here

Was this page helpful?
0 / 5 - 0 ratings