Flutterfire: [Firebase Messaging] Receive data notifications while the app is terminated

Created on 13 Oct 2019  路  9Comments  路  Source: FirebaseExtended/flutterfire

Since we have background execution of dart code now, would it be possible to receive data notifications while the app is terminated?

Most helpful comment

Why is this issue closed? Is it possible to receive data notifications while app is terminated or am I the only one who has this requirement??

All 9 comments

Why is this issue closed? Is it possible to receive data notifications while app is terminated or am I the only one who has this requirement??

Any updates on this?

How to do that with Dart code, any example is there?

Why is this issue closed? :/

I'm looking forward for this fix as well

Comment for stats

I also need this feature.

As I far as I get this issue is closed because the feature is implemented.

The table in the README is wrong, you can receive data notifications while the app is terminated; just follow this part and the section Optionally handle background messages

@optimygmbh I was able to confirm that I can receive a data notification using the onBackgroundMessage callback even if the application is terminated on Android (API 8.1). I then triggered a local notification using the flutter_local_notifications plugin.

@imtoori It seems you're correct but the documentation is very misleading, especially since debug mode is usually closed when apps are terminated in the emulator. Any chance we could get the documentation updated?

I've however yet to confirm if this works after some time(after app is removed from the services whitelist).

Was this page helpful?
0 / 5 - 0 ratings