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

Android: RemoteMessage notification is null in onMessage #31

Open
ben-aw opened this issue Aug 7, 2023 · 0 comments
Open

Android: RemoteMessage notification is null in onMessage #31

ben-aw opened this issue Aug 7, 2023 · 0 comments

Comments

@ben-aw
Copy link

ben-aw commented Aug 7, 2023

On Android, when receiving a remote notification when the app is foregrounded, the message.notification is always null, even when it is shown in the message's data.

Our payload is similar to this...

{
    "notification" : {
        "title"  : "You have a notification",
        "body"   : "The body of the notification"
    },
    "data" : {
        "someKey": "someValue",
     }
 }

This is being sent with AWS Pinpoint using "RawData" which is then passed thru Firebase Messages.

Here, result[0] is null.
Screenshot 2023-08-07 at 1 55 34 PM

Any ideas? Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant