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
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
Most helpful comment
The
onBackgroundMessageis called only on data message with no notification body when the app is terminated or in background.