-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_messaging] data message arrives on the native side, but is not delivered to the Dart side #1357
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 @sd-timaru |
Yes, but i just updated the flutter and dart plugin.... |
Thank you @sd-timaru |
I also experience this on my app. A simple But then the Dart background Message handler does not always execute |
Hey all 👋 As part of our roadmap (#2582) we've just shipped a complete rework of the If you can, please try out the dev release (see the migration guide for upgrading and for changes) and if you have any feedback then join in the discussion here. Given the scope of the rework I'm going to go ahead and close this issue in favor of trying out the latest plugin. Thanks everyone. |
Using firebase_messaging: ^5.1.6 plugin in my application, I noticed that when the app is in the background, sometimes the messages do not reach "the destination", so i decided to do some "tracking".
In the file FlutterFirebaseMessagingService.java, at the method executeDartCallbackInBackgroundIsolate i added
"Log.i(TAG, "before handleBackgroundMessage")":
In the file firebase_messaging.dart , at the method setMethodCallHandler i added
"print('Received in Dart!');":
To do some testing, i send 4 data messages, while the app was in background. 2 of them arrived successfully in the app, but the last 2 didn't, even they arrived to the java side:
If i "bring" the app in the foreground and send to it others data messages, the arrive successfully.
What could be the problem? Why the messages are not delivered always to the Dart side, when the app is in the background?
The text was updated successfully, but these errors were encountered: