Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Notification does NOT show up when app is open [closed]

In my testing, when send out Firebase Notification to Android, the notification does NOT show up when the user has the app open on the screen. Is this a default behavior?

What should I do if I want the user to always receive notification no matter they have the app open or not?

like image 751
user1187968 Avatar asked Oct 19 '25 13:10

user1187968


1 Answers

For notification messages the default behavior is indeed that:

  • the OS displays them when the app is not active.
  • they're delivered to your application code when the app is active.

Also see:

  • The Firebase documentation on message types.
  • Flutter: Push notifications even if the app is closed, mostly since it shows how to show your own notifications.
like image 200
Frank van Puffelen Avatar answered Oct 21 '25 03:10

Frank van Puffelen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!