2

我关注了 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 方应用程序。

请指导我。任何帮助将不胜感激。

4

1 回答 1

2

但它向所有设备而不是特定设备运行通知

由于 GCM 不支持向所有设备发送通知,因此这是不可能的。GCM 支持向特定设备或向同一用户注册的所有设备发送消息(如果您使用选择加入用户通知功能)。

这里是什么意思 3rd 方应用程序。

这是在您链接到的网页上定义的。您可以通过阅读该页面并看到:

3rd-party Application Server:作为实现 GCM 的一部分编写的应用程序服务器。第 3 方应用服务器通过 GCM 连接服务器向设备上的 Android 应用发送数据。

于 2013-09-03T13:53:34.593 回答