Amazon SNS: Does it handle canonical Google Cloud Messaging identifiers?

I was looking through the Google Cloud Messaging documentation and I came across this section:

http://developer.android.com/google/gcm/adv.html#canonical

Canonical identifiers

If you later try to send a message using a different registration identifier, GCM will process the request as usual, but it will contain the canonical registration identifier in the registration_id field of the response. Be sure to replace the registration identifier stored on your server with this canonical identifier, as in the end the identifier you use will stop working.

How do we handle the Canonical Id update when using ANR ANSON ANSON STS?

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 offer. Thank!

+4
source share
1 answer

You cannot get Canonical IDs through SNS, but you can get it through Google GCM REST Api yourself.

see this: GCM with PHP (Google Cloud Messaging)

canonical identifiers will be received.

0
source

Source: https://habr.com/ru/post/1540235/


All Articles