Android的GCM交货监控 [英] Android GCM delivery monitoring

查看:195
本文介绍了Android的GCM交货监控的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发移动客户端的电子邮件服务。其中一个主要功能是对邮箱中的新邮件通知。所推荐的GCM结构的指导方针,我们使用的是推,它负责将消息发送到谷歌的服务器,一旦我们收到新的消息。问题是,测试过程中已经报道了严重的问题,推送通知交付设备。

I am developing mobile client for emailing service. One of the key features is notifications about new messages in the mailbox. As recommended by GCM architecture guidelines we are using a "Pusher" that is responsible for sending messages to the Google servers once we received a new message. The issue is that testing process has reported about serious problems with push notification delivery to devices.

所以,问题:是否有一种方法用于监视有关推送通知交货率,时间等的平均统计数据?或者,也许有人在如何建立测试环境进行有效监测多少通知的应用程序的工作过程中迷路的经历?

So the question: is there an approaches for monitoring average statistics about push notification delivery percentage, time etc? Or maybe somebody have experience in how to set up test environment for efficient monitoring of how much notifications are getting lost during the application work?

所有的提示和放大器;花样有关改善Android的GCM经验,欢迎

All the "tips&tricks" related to the improving Android GCM experience are welcome.

推荐答案

谷歌称,该处理在他们的GCM服务器需要不到一毫秒。下面的链接为一个伟大的视频GCM从谷歌的开发者。而且它是可信的表兄弟姐妹,我可以用我公司的服务器到我的设备现在可以得到推送通知几乎瞬间。

Google claims that the processing at their GCM server takes less than a millisecond. Link below for a great video on GCM from Google's developer. And it's believable coz I could get push notifications almost instantaneously using my company's server to my device now.

http://www.youtube.com/watch?v=YoaP6hcDctM

他们不保证发货,但他们试了最多4周交付取决于你的消息中设置的时间发送给谷歌的GCM服务器的消息,如果你希望让谷歌保持数据的最终传递消息到设备的情况下的设备是离线时的信息是待递送。

They don't guarantee delivery, but they try for a max of 4 weeks to deliver the message depending on the duration you set in the message you send to Google's GCM servers and if you wish to let Google keep the data for eventual delivery of message to the device in case the device was offline when the message was to be delivered.

然而,也有一定的条件下的GCM邮件不传递。

However, there are certain conditions under which the GCM messages are not delivered.

  1. 在背景数据是根据账户和同步设置选中。
  2. 此前4.0.4(ICS),设备上的谷歌帐户是pre-必要条件GCM。也许,用户没有登录到自己的谷歌账户。

这篇关于Android的GCM交货监控的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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