6

I want to have a push notification when the app is closed but I don't know how to do it.

I already tried firebase cloud messaging, it worked but the notification took around 3 to 5 min to come, but I need it instantly. I tried pushy.me, it works very well when the app is openned or in background but not when it's closed. And I didn't find anything in their documentation talking about closed apps. Maybe I can do something with flutter local notification and an API?

Thomas Beau
  • 63
  • 1
  • 1
  • 5

2 Answers2

7

This problem happens for me when the app is built in debug mode

When I build the app in release mode, I don't have this issue

MobileMon
  • 8,341
  • 5
  • 56
  • 75
0

It can caused by sometimes flutter version upgrade. In my case i tried to update my firebase_messaging to latest version and i followed this ref

Tanvir Ahmed
  • 564
  • 6
  • 13