Skip to content
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

[firebase_messaging]: FirebaseMessaging.onMessage.listen receive RemoteMessage with empty or null information #16954

Open
1 task done
gvillegasc opened this issue Jan 8, 2025 · 1 comment
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

Comments

@gvillegasc
Copy link

gvillegasc commented Jan 8, 2025

Is there an existing issue for this?

  • I have searched the existing issues.

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 version 15.1.4 of flutter_messaging

{
  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
}

Reproducing the issue

I have no idea how to replicate it, sometimes the data key has information without problems and sometimes it arrives empty

Firebase 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 snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

No response

@gvillegasc gvillegasc added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Jan 8, 2025
@SelaseKay SelaseKay added plugin: messaging platform: android Issues / PRs which are specifically for Android. platform: ios Issues / PRs which are specifically for iOS. labels Jan 9, 2025
@SelaseKay
Copy link
Contributor

Hi @gvillegasc, thanks for the report. Unfortunately, this is beyond flutterfire's control since it appears your issue is device-specific and also without any concrete way to reproduce.

@SelaseKay SelaseKay added blocked: customer-response Waiting for customer response, e.g. more information was requested. resolution: needs-repro This issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin. and removed Needs Attention This issue needs maintainer attention. labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants