Closed
Description
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:
- If I do not implement backgroundMessagehandler when I push notification from the firebase console then my app crash.
- When I set up native code like that
In the documentation then GeneratedPluginRegistrant.registerWith(registry); with input is PluginRegistry but in the native code (Kotlin) then input is FlutterEngine.
And why?
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
iapicca commentedon Feb 25, 2020
Hi @tinhpt38
does this answer help?
Thank you
tinhpt38 commentedon Feb 26, 2020
Hi @iapicca !
I tried it but not help! I will take the same error!
Thanks you!
iapicca commentedon Feb 26, 2020
Hi @tinhpt38
can you please provide your
flutter doctor -v
,your
flutter run --verbose
, yourpubspec.yaml
and if possible an updated reproducible minimal code sample.
Thank you
michaelcastro commentedon Feb 27, 2020
Same error!
michaelcastro commentedon Feb 27, 2020
@tinhpt38
This works for me:
#1775 (comment)
See too:
https://stackoverflow.com/questions/59446933/pluginregistry-cannot-be-converted-to-flutterengine
iapicca commentedon Feb 28, 2020
Hi @tinhpt38
does @michaelcastro (thanks) solution works for you?
Thank you
TahaTesser commentedon Mar 27, 2020
Hi @tinhpt38
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore
reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any
more information for us; we will reopen it right away!
Thanks for your contribution.
LasseRosenow commentedon Mar 27, 2020
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.
tinhpt38 commentedon Mar 28, 2020
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!
[-]Firebase Cloud Messaging [/-][+][firebase_cloud_messaging] Error when using backgroundMessageHander as per docs[/+][-][firebase_cloud_messaging] Error when using backgroundMessageHander as per docs[/-][+][firebase_messaging] Error when using backgroundMessageHander as per docs[/+]saravananmnm commentedon May 15, 2020
saravananmnm commentedon May 15, 2020
try this code
And Main activity
naveenkumardot25 commentedon Sep 2, 2020
I solved this issue
#2777 (comment)
russellwheatley commentedon Apr 16, 2021
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.