The plugin needs to integrate the Android embedding changes in Flutter 1.12.
FlutterApplication does not exist anymore - see the README section.
@TahaTesser I think that this is not only documentation because the functionality of the plugin depends on this.
Hi @creativecreatorormaybenot
Please explain it detail what's the issue/change you looking for?
To better the address the issue
Thank you
@TahaTesser See https://github.com/FirebaseExtended/flutterfire/issues/1646.
I opened this to show that there are problems with FlutterApplication in addition to what the other issues state. I do not know how to fix it right now.
Hi, I just upgraded my App to the new Flutter 1.12 API (embedding) and now I don't know how to keep firebase_messaging working :(
@mnesarco you may find some help at https://stackoverflow.com/a/59490722
@amirh @kroikie Should the migration of the firebase_messaging plugin to Android embedding v2 take inspiration from the work done by @bkonyi in https://github.com/flutter/plugins/pull/2193 ?
It looks like his abstraction of a BackgroundExecutor could be quite useful when executing firebase messaging in the background: https://github.com/flutter/plugins/blob/master/packages/android_alarm_manager/android/src/main/java/io/flutter/plugins/androidalarmmanager/FlutterBackgroundExecutor.java .
@mnesarco you may find some help at https://stackoverflow.com/a/59490722
But this approach is not compatible with writing custom platform-specific code. As is described on flutter.dev - The FlutterEngine is needed to set setMethodCallHandler on MethodChannel.
@mnesarco you may find some help at https://stackoverflow.com/a/59490722
I followed the tutorial for Android ( https://pub.dev/packages/firebase_messaging ) just without the optional section Optionally handle background messages. At that point I had the same issue as per https://github.com/FirebaseExtended/flutterfire/issues/248.
At that point I used the answer pointed by @vkammerer (https://stackoverflow.com/a/59490722) and then notifications worked great :)
Kudos!
@mnesarco you may find some help at https://stackoverflow.com/a/59490722
I followed the tutorial for Android ( https://pub.dev/packages/firebase_messaging ) just without the optional section Optionally handle background messages. At that point I had the same issue as per #248.
At that point I used the answer pointed by @vkammerer (https://stackoverflow.com/a/59490722) and then notifications worked great :)
Kudos!
Me too! I was facing the same problem but I solved following this steps! Thanks bro!
@mnesarco you may find some help at https://stackoverflow.com/a/59490722
I followed the tutorial for Android ( https://pub.dev/packages/firebase_messaging ) just without the optional section Optionally handle background messages. At that point I had the same issue as per #248.
At that point I used the answer pointed by @vkammerer (https://stackoverflow.com/a/59490722) and then notifications worked great :)
Kudos!Me too! I was facing the same problem but I solved following this steps! Thanks bro!
Unfortunately not for me. This procedure cannot be combined with the use of PlatformChannel, which must be registered in method configureFlutterEngine in FlutterActivity.
For the above procedure to work, it is necessary to remove method configureFlutterEngine from the FlutterActivity. Unfortunately AFAIK it is not possible to register PlatformChannel in FlutterApplication!
Most helpful comment
@mnesarco you may find some help at https://stackoverflow.com/a/59490722