【发布时间】:2013-09-03 13:42:28
【问题描述】:
我关注了 Google GCM Google Cloud Messaging for Android。但它会向所有设备而不是特定设备运行通知。如何向特定设备发送通知。
我认为我需要注册 ID。但是注册ID的定义是:
An ID issued by the GCM servers to the Android application that allows it to receive
messages. Once the Android application has the registration ID, it sends it to the
3rd-party application server, which uses it to identify each device that has registered
to receive messages for a given Android application. In other words, a registration ID
is tied to a particular Android application running on a particular device.
这里的3rd party Application是什么意思。
请指导我。 任何帮助将不胜感激。
【问题讨论】:
-
将您复制的定义中的“服务器端”一词替换为“3rd-party application server”。注册 ID 是设备 ID+应用程序的组合,它是唯一且理想的在您的服务器端使用它,以便识别您与服务器交互的人。看看这个image to undersand it。
标签: android push-notification google-cloud-messaging