Y! 上的推送通知系统如何工作?邮件应用程序?

发布于 2024-09-07 21:06:32 字数 98 浏览 5 评论 0原文

我今天从市场安装了雅虎邮件应用程序,我正在阅读它提供的推送消息通知技术。事实上,它确实有效,因为我在台式计算机和移动邮件客户端上收到完全相同的警报。

它是如何实现的?

I installed today from Market, the Yahoo Mail application and I was reading it offers push message notification technique. Indeed it works, as I got exactly the same moment the alert on my desktop computer and my mobile mail client.

How is it accomplished?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦里°也失望 2024-09-14 21:06:32

已经有另一个问题讨论如何实现推送通知而不需要旧系统中的云到设备消息传递。

有几个框架可以为您提供推送能力。它们都需要运行一个小的后台线程,以非常短的时间间隔轮询服务器(对数据速率和电池不利),或者保持与服务器的开放连接,该服务器以某种方式保持活动状态,并且每次有新消息时都会通知客户端正在服务器上等待。

看一下问题,也许选择上述框架中的一个,这些框架将为使用相同框架安装在手机上的所有应用程序重用相同的服务,从而节省电池和一般系统使用量。

There already is another question discussing how to implement push notification without the cloud to device messaging in older system.

There are several frameworks that give you push abillity. They all require a running a small background thread that is polling a server at a very short interval(Bad for data rate and battery) or keep an open connection to a server that is kept alive somehow and the client is notified every time a new message is waiting on the server.

Have a look at the question and maybe choose on of the mentioned frameworks, the frameworks will reuse the same service for all applications that are installed on the phone using the same framework and therefore save battery and general system usage.

丶视觉 2024-09-14 21:06:32

很快,您将能够使用云到设备消息传递 (C2DM) 系统,但需要 Android 2.2 或更高版本。您可能还想观看 Google I|O 2010 大会上的演示,其中提供了一些关于他们如何实现它的线索。

Soon, you will be able to use the Cloud-to-Device Messaging (C2DM) system, though it will require Android 2.2 or higher. You might also want to watch the Google I|O 2010 conference presentation on it, which gives a few clues as to how they implemented it.

梦醒灬来后我 2024-09-14 21:06:32

如果不安装应用程序、设置路由器来捕获数据包并进行一些数据包检查,我无法确切地告诉您他们是如何做到的。在最低级别上,它就像保持与远程服务器的开放 TCP 连接并让服务器在需要执行某些操作时向客户端发送数据包一样简单。我有根据地猜测他们的具体方式是使用 IMAP IDLE 或 XMPP。

Without installing the app, setting up my router to capture packets, and doing some packet inspection I can't tell you exactly how they do it. At the lowest level it's as simple as keeping an open TCP connect to a remote server and having the server sending the client a packet when it needs to do something. My educated guess on the specific way they are doing it is either with IMAP IDLE, or XMPP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文