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

CanonicalRegistrationIds are inserted into Failed list of the GcmMulticastResultException instead of Succeeded #698

Open
GenaVyb opened this issue May 8, 2016 · 2 comments

Comments

@GenaVyb
Copy link

GenaVyb commented May 8, 2016

PushSharp 4.0

Describe your issue:

Uninstall the app and reinstall it. Try to send notification with the old id, the message will be recieved but will be marked as failed

Please provide any Exception Stack Traces

@micharub
Copy link

micharub commented May 8, 2016

Very true

@micharub
Copy link

micharub commented May 8, 2016

https://developers.google.com/cloud-messaging/registration#canonical-ids
According to latest Google specs:
If you try to send a message using an old registration token, GCM will process the request as usual, but it will include the canonical ID in the registration_id field of the response. Make sure to replace the registration token stored in your server with this canonical ID, as eventually the old registration token will stop working.

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

2 participants