Firebase notifications are not getting called when app is in closed mode..i am using local notifications to display bigpicturestyle notification.But fcm is unable to run onmessage received when app is closed. Any other ways to call onmessage function even when app is closed
Asked
Active
Viewed 2,558 times
2
-
When the app is closed the messages should be shown automatically. When the app is in foreground, the app receives the message and needs to show them itself if you want them shown. Perhaps the structure of the message is incomplete to match the requirements when the app is closed. Can you please add a message example how you send it? – Günter Zöchbauer Jun 26 '18 at 17:55
-
messages are displaying but not with image.. because we are using local notifications to display image type notification – praveen Dp Jun 26 '18 at 17:59
-
https://stackoverflow.com/a/38795553/217408 might help – Günter Zöchbauer Jun 26 '18 at 18:04
-
i am sending data message only but still it is not displaying. In flutter how to add – praveen Dp Jun 26 '18 at 20:13
-
Hey did you solved the issue.? – Hemil Kumbhani Jul 12 '19 at 19:46
1 Answers
-1
Firebase Cloud Messaging can only receive notifications on onMessage
when the app is in the foreground.
When the app is in the background, the notification should be displayed automatically on the device. This behavior can then be handled with onMessageOpenedApp
.

Omatt
- 8,564
- 2
- 42
- 144