-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[firebase_messaging] Support Flutter 1.12 Android embedding #2017
Comments
@TahaTesser I think that this is not only documentation because the functionality of the plugin depends on this. |
Hi @creativecreatorormaybenot |
@TahaTesser See #1646. I opened this to show that there are problems with |
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 flutter/plugins#2193 ? |
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. |
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! |
I don't believe this issue is relevant anymore with v2 embedding so am closing in favour of checking out the latest messaging version which has since this issue was created been heavily reworked to improve it along with detailed documentation: https://firebase.flutter.dev/docs/messaging/overview Thanks |
The plugin needs to integrate the Android embedding changes in Flutter 1.12.
FlutterApplication
does not exist anymore - see theREADME
section.The text was updated successfully, but these errors were encountered: