我正在尝试使用 Google 云消息传递的新云连接服务器功能将上游消息从设备发送到云端。我正在使用入门指南中的示例代码。
http://developer.android.com/google/gcm/gs.html
我能够设置客户端并获取注册 ID。但是当我发送 消息到服务器没有任何反应。我不确定是否需要在服务器端进行一些设置。我的基本服务器要求是从客户端接收消息并发回响应。我正在使用基于 Java 的后端服务器。我在有关服务器端设置的文档中找不到任何具体内容。
有人可以帮忙吗?
最佳答案
是的,这绝对是可能的
http://developer.android.com/google/gcm/ccs.html
The GCM Cloud Connection Server (CCS) allows third party servers to communicate with
Android devices by establishing a persistent TCP connection with Google servers using the
XMPP protocol. This communication is asynchronous and bidirectional.
关于java - 如何使用谷歌云连接服务器发送上游 GCM 消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16935475/