android - 亚马逊社交网络 : Does it handle Google Cloud Messaging Canonical Ids?

标签 android amazon-web-services google-cloud-messaging amazon-sns

我正在浏览 Google Cloud Messaging 文档,我遇到了这个部分:

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.

我们如何在使用 Amazon SNS 端点 ANR 时处理 Canonical Id 更新?

我查看了 Amazon API 文档

CreatePlatformEndpoint:http://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformEndpoint.html

发布:http://docs.aws.amazon.com/sns/latest/api/API_Publish.html

请推荐。谢谢!

最佳答案

您无法通过 SNS 获取 Canonical ID,但您可以自行通过 Google GCM REST Api 获取。

看到这个:GCM with PHP (Google Cloud Messaging)

结果将具有规范 ID。

关于android - 亚马逊社交网络 : Does it handle Google Cloud Messaging Canonical Ids?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23611707/

相关文章:

java - 网络游戏: update the clients with deltas or with the new status

node.js - aws xray 采样不适用于 http 状态代码

linux - Amazon Web 服务中的 "Attach volume"是什么?

Android GCM putExtra 打开 Intent

android - 当用户同时从多个设备登录并且多个帐户已在同一设备上登录时使用 GCM

php - Android GCM 中的通知生成问题

android - 将字符串从一个 Activity 传递到另一个 Activity 时出现问题

c# - Xamarin - Android - Plugin.InAppBilling 异常

Java多变长参数

node.js - Node 应用程序在一定时间后无响应