-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_messaging] Error when using backgroundMessageHander as per docs #2055
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
Comments
Hi @iapicca ! |
Hi @tinhpt38 |
Same error! |
@tinhpt38 See too: |
Hi @tinhpt38 |
Hi @tinhpt38 |
Excuse me? But didn't @tinhpt38 already give you all the information you need? If you create a new flutter project and setup firebase_messaging background handling the way it's explained in the readme, you should get the same error as he got. What more do you want? Many people including me face this issue and its very frustrating. |
hi @lazylazyllama and @michaelcastro, for now, I still get an error when I using the background handle of firebase messing! I am going to waiting for any version upgrade to can fix it! |
|
try this code
And Main activity
|
I solved this issue |
Closing in favour of trying the latest messaging version which has been been heavily reworked, along with documentation, since this issue was raised: https://firebase.flutter.dev/docs/messaging/overviewIf you still have a problem please raise a new GitHub issue with up to date information and code snippets if possible. Thanks. |
Hi! I set up a firebase cloud messing for my flutter application.
I using backgoundMessageHandler and I implemented like that documentation but I take errors:
In the documentation then GeneratedPluginRegistrant.registerWith(registry); with input is PluginRegistry but in the native code (Kotlin) then input is FlutterEngine.

And why?
The text was updated successfully, but these errors were encountered: