是否接近实时推送通知支持Android? [英] Does Android support near real time push notification?

查看:164
本文介绍了是否接近实时推送通知支持Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近了解了iPhone应用程序来接收几乎瞬时的 到应用<通知/能力一> 通知应用

I recently learned about the ability of iPhone apps to receive nearly instantaneous notifications to apps notifications to apps.

这是在推送通知,一个定制的协议,这使的形式提供一个始终保持数据连接iPhone和消息的二进制包的应用程序,它会弹出的警报的难以置信的很快,0.5 - 从服务器应用程序5秒发送到手机应用程序的响应时间。作为数据的一部分,没有计划的传入消息在充电非常非常小的数据包 - 这是发送数据 - 而不是短信。

This is provided in the form of push notifications, a bespoke protocol which keeps an always on data connection to the iPhone and messages binary packets to the app, which pops up alerts incredibly quickly, between 0.5 - 5 seconds from server app send to phone app response time. This is sent as data - rather than SMS - in very very small packets charged as part of the data plan not as incoming messages.

我想知道,如果使用的是Android,可能出现了类似的设施,还是有可能实现的东西接近这个采用Android的API。为了澄清,我定义类似于:

I would like to know if, using Android, there is either a similar facility, or whether it's possible to implement something close to this using Android APIs. To clarify, I define similar as:

  • 不是SMS消息,但一些数据驱动的解决方案
  • 作为真正的时间可能
  • 是可伸缩的,也就是说,作为一个移动应用程序的服务器部分,我可以在几秒钟内通知数以千计的应用程序实例

我AP preciate应用程序可以拉基于HTTP请求/响应风格,但最好我不希望轮询,它在很大程度上只是为了检查的通知;除了它就像滴注引流的数据计划。

I appreciate the app could be pull based, HTTP request/response style, but ideally I don't want to be polling that heavily just to check for notification; besides which it's like drip draining the data plan.

推荐答案

截至2012年6月26日,的谷歌云消息传递是将消息发送到应用程序在设备上运行的preferred方式。

As of June 26, 2012, Google Cloud Messaging is the preferred way of sending messages to applications running on devices.

previously(现在去precated),该服务被称为云到设备消息

Previously (and now deprecated), the service was called Cloud To Device Messaging.

这篇关于是否接近实时推送通知支持Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆