Is there a way to receive data notifications in flutter when the app is killed?
1,626
You can write a background message handler in headless function and use firebase local notification plugin to show the notification
this tutorial will definitely help you
https://medium.com/@sylvainduch/firebase-messaging-catch-them-all-3f9c594734d7
Author by
Caroline
Updated on December 10, 2022Comments
-
Caroline over 1 year
I am trying to implement custom ui for push notifications in android (title, body, image loaded from url),
the firebase_messaging dart plugin has a limitation for receiving data notifications when the app is killed.
using data payload instead of notifications payload is the option to draw custom ui notifications in android natively.
Is there a way to receive data notifications in flutter when the app is killed ?