java– 如何使用Google Cloud Connection Server发送上游GCM消息

java– 如何使用Google Cloud Connection Server发送上游GCM消息,第1张

概述我正在尝试使用GoogleCloudMessaging的新CloudConnectionServer功能将上游消息从设备发送到云.我正在使用“入门指南”中的示例代码.http://developer.android.com/google/gcm/gs.html我能够设置客户端并获得注册ID.但是,当我发送消息到服务器没有任何反应.我不确定是否需要

我正在尝试使用Google Cloud Messaging的新Cloud Connection Server功能将上游消息从设备发送到云.我正在使用“入门指南”中的示例代码.
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 – 如何使用Google Cloud Connection Server发送上游GCM消息全部内容,希望文章能够帮你解决java – 如何使用Google Cloud Connection Server发送上游GCM消息所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1118982.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存