I was going through Google Cloud Messaging documentation and I came across this section:
http://developer.android.com/google/gcm/adv.html#canonical
Canonical IDs
If later on you try to send a message using a different registration ID, GCM will process the request as usual, but it will include the canonical registration ID in the registration_id field of the response. Make sure to replace the registration ID stored in your server with this canonical ID, as eventually the ID you're using will stop working.
How do we handle the Canonical Id update while using Amazon SNS Endpoint ANRs?
I checked the Amazon API documentation for
CreatePlatformEndpoint: http://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformEndpoint.html
and
Publish: http://docs.aws.amazon.com/sns/latest/api/API_Publish.html
Please suggest. Thanks!