FirebaseCloudMessaging not work correctly when app is terminated #4801
Unanswered
TalebRafiepour
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to handle background message of the FCM in the Flutter but i got error when fcm send message to the app in the background mode and make error in the log
pubspec.yaml:
MainActivity.kt :
Application.kt :
Code of using fcm:
I just called _initFcm() in the initState() of the main app class.
My target is when the app is in the background the background fcm method must trigger and i must save data of message in the prefrences to do some thing with that when app openned
Run log:
Beta Was this translation helpful? Give feedback.
All reactions