android – GCM Cloud Connection Server中上游消息传递的主要用途是什么?

在Google IO 2013上公布的Cloud Connection Server的用法是什么?

我有兴趣知道是否可以使用上游消息传递功能将特定消息发送到GCM服务器.例如,我可以发送一个命令来删除存储在GCM服务器上的GCM通知吗?还是只用于发送自定义消息?如果是这样,为什么我们需要它?

解决方法

根据 docs,没有从GCM服务器删除邮件的功能.

上游功能仅用于将消息从设备传送到第三方服务器.使用设备进行云消息传递而不是在您的应用程序和服务器之间建立自己的连接的优势正在提高电池寿命.它也应该比常规GCM更快(因为它是异步的).

Some of the benefits of CCS include:

  • The asynchronous nature of XMPP allows you to send more messages with fewer resources.
  • Communication is bidirectional—not only can the server send messages to the device,but the device can send messages back to the server.
  • You can send messages back using the same connection used for receiving,thereby improving battery life.

相关文章

Android 如何解决dialog弹出时无法捕捉Activity的back事件 在...
Android实现自定义带文字和图片的Button 在Android开发中经常...
Android 关于长按back键退出应用程序的实现最近在做一个Andr...
android自带的时间选择器只能精确到分,但是对于某些应用要求...