Skip to content
Discussion options

You must be logged in to vote

To avoid default notification behaviour; don't send a notification payload - send a data only message (which you can't do directly on the Firebase Console UI/Website) via the server SDKS, see https://firebase.flutter.dev/docs/messaging/server-integration

Send all the data you need to construct your own notification on the device (this is called a local notification) as keys in the data object of your FCM message. Then in your onBackgroundMessage when the data message comes through build your own notification using the data you sent by using a library such as flutter_local_notifications to build and show a local notification.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nivisi
Comment options

@rohit-suthar
Comment options

Answer selected by Salakar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #5700 on April 08, 2021 17:03.