firebaseflutterfirebase-cloud-messaging

Flutter Firebase no notification shown on terminated app


I am using Firebase cloud messaging for flutter. Everything works as expected, when the app is either open or in the background. But if I close the app (terminated) no messages are received.

I send the messages with the firebase console.

I have tried two emulators, that both had play services installed.I even logged in with a google account in the emulator.

Any ideas what I might be doing wrong?


Solution

  • I set priority to high and it started working. The docs only talk about priority high in the context of data messages but it seems it is important for notifications as well then.