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

Fix title and message for Firebase #806

Merged
merged 2 commits into from
Aug 1, 2018

Conversation

steelbrain
Copy link

title and body are special props when coming from GCM/Firebase compat. Their keys are prefixed with gcm. which is ignored when getData() returns it's data.

We have to use the remote notification APIs to get access to those properties.

I've added these new props before iterating the data bundle so data can override this, making this change backward-compatible.

@Gp2mv3 Gp2mv3 merged commit ccd9edc into zo0r:master Aug 1, 2018
@steelbrain steelbrain deleted the steelbrain/fix-title-message branch August 2, 2018 03:16
@schumannd
Copy link
Contributor

can the usage of title and body in remote notifications be explained in the README? I couldn't find a reference to it.

@steelbrain
Copy link
Author

@schumannd The title and body have to be specified in the Firebase payloads

@schumannd
Copy link
Contributor

so it does not work with GCM? What about the 'message' key?

@steelbrain
Copy link
Author

Not sure about GCM but this PR is specific to FCM

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

Successfully merging this pull request may close these issues.

3 participants