Flutterfire: [firebase_messaging] why data message on android is not supported by plugin, message is lost when app terminated

Created on 4 Mar 2020  Â·  9Comments  Â·  Source: FirebaseExtended/flutterfire

Why does it work on iOS but not Android? whether it works in the future or not?

messaging documentation enhancement question

Most helpful comment

In my test, the data message on Android is:

App in Background: onBackgroundMessage is called, not onMessage
App Terminated: onBackgroundMessage is called, not without support

But why in official docs still showing not supported by plugin, message is lost

All 9 comments

Hi @tbm98
can you please provide your flutter doctor -v ,
your flutter run --verbose
and your pubspec.yaml
or if possible a reproducible minimal code sample.
Thank you

Screen Shot 2020-03-09 at 22 49 52
this picture is showing data message on android when app terminated is not support by plugin, message is lost

In my test, the data message on Android is:

App in Background: onBackgroundMessage is called, not onMessage
App Terminated: onBackgroundMessage is called, not without support

In my test, the data message on Android is:

App in Background: onBackgroundMessage is called, not onMessage
App Terminated: onBackgroundMessage is called, not without support

But why in official docs still showing not supported by plugin, message is lost

Ok any luck guys? Is it working or not?

Any luck Guys ? did someone try to use onBackgroundmessage ?

Hey yes.
Its working now!!!

On Sat, 16 May 2020, 8:04 am Yirmerah, notifications@github.com wrote:

Any luck Guys ? did someone try to use onBackgroundmessage ?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/FirebaseExtended/flutterfire/issues/2121#issuecomment-629519603,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACGWJPNKEQKLHMG2GMQM6MDRRW367ANCNFSM4LBITSFA
.

Oh really ?
Could you show me how you succeed ?
I'm actually struggling with some issue ? https://github.com/FirebaseExtended/flutterfire/issues/2565
Could you help me ?

Hey yes. Its working now!!!
…
On Sat, 16 May 2020, 8:04 am Yirmerah, @.*> wrote: Any luck Guys ? did someone try to use onBackgroundmessage ? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#2121 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGWJPNKEQKLHMG2GMQM6MDRRW367ANCNFSM4LBITSFA .

Was this page helpful?
0 / 5 - 0 ratings