[firebase_messaging]: FirebaseMessaging.onMessage.listen receive RemoteMessage with empty or null information #16954
Labels
blocked: customer-response
Waiting for customer response, e.g. more information was requested.
platform: android
Issues / PRs which are specifically for Android.
platform: ios
Issues / PRs which are specifically for iOS.
plugin: messaging
resolution: needs-repro
This issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin.
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Messaging
Which platforms are affected?
iOS, Android
Description
I am currently experiencing a problem when I receive the remoteMessage body in
FirebaseMessaging.onMessage.listen
, it comes with empty or null information, this is strange since on some devices it comes without problem but on others it fails but sometimes on those that fail the information arrives correctly, I have not been able to find a pattern but in the logs of my server where the notification is sent this sent information does not have any type of error, this has happened since I updated to version15.1.4
offlutter_messaging
Reproducing the issue
I have no idea how to replicate it, sometimes the
data
key has information without problems and sometimes it arrives emptyFirebase Core version
3.7.0
Flutter Version
3.22.3
Relevant Log Output
print(remoteMessage.toMap()) { senderId: null, category: null, collapseKey: null, contentAvailable: false, data: {}, from: null, messageId: null, messageType: null, mutableContent: false, notification: null, sentTime: 0, threadId: null, ttl: 0 }
Flutter dependencies
Expand
Flutter dependencies
snippetReplace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: