0

I have an application that has a function that whenever a data is added in the firebase realtime database it will send a notification on a group of device via FCM tokens. However it only sends notifications when the application is not opened and on background, but when the application is opened and running the notifications will not arrive.

I also tried it on notification "Send test message" and it still wont send notification if the application is currently open and running. Is this normal for FCM notifications? I have tried multiple devices and they are all the same, even on a emulator. So my questions is how do I enable the notification to send on the devices even when the application is currently running? I just want the standard notification above, and not the "In-App Messaging". Any explanation will help! Thank you!

Timow
  • 17
  • 5

1 Answers1

0

Messages are handled differently depending on the app state. You need a code implementation to handle the messages when the app is in foreground.

You can also check out these similar posts:

Yuji Bry
  • 304
  • 8