Flutterfire: [firebase_messaging] when onBackgroundMessage is called ?

Created on 16 Dec 2019  路  2Comments  路  Source: FirebaseExtended/flutterfire

Describe the bug
According to the documentation of the firebase_messaging plugin, we can define a onBackgroundMessage callback. But when it is called ?
According to the table here,onMessage would be called even when the app is in the background. Either it is an error in the documentation or something is missing

bug

Most helpful comment

The onBackgroundMessage is called only on data message with no notification body when the app is terminated or in background.

All 2 comments

The onBackgroundMessage is called only on data message with no notification body when the app is terminated or in background.

Hi @woprandi
I see there's an open issue addressing the case you described.
Please follow up on that issue,
I'm closing the current one as duplicate.
If you disagree please write in the comments
and I will reopen it.
Thank you

Was this page helpful?
0 / 5 - 0 ratings