FCM for Flutter Web app

590 views
Skip to first unread message

Krzysztof Mamak

unread,
Jul 12, 2021, 6:22:06 AM7/12/21
to Firebase Google Group

Hi, I'm adding an ability to receive push notifications in Flutter Web app. I want to receive push notifications everytime, perform some operation (ex. reload data, update UI in dart code) and not to show system notification. Note that everything works as expected when app is in the foreground. 

I was based on this example: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_messaging/firebase_messaging/example.

I have questions:
Am I able to prevent a browser from automatically showing system notification when app is in the background? If yes how can I achieve this?
Can I perform some operation (ex. reload data, update UI in dart code) after receiving push notification when app is in the background?

Thank you in advance.

Reply all
Reply to author
Forward
0 new messages