GCM - 推送通知到达设备需要多长时间? [英] GCM - How long does it take for push notifications to reach the device?

查看:95
本文介绍了GCM - 推送通知到达设备需要多长时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对接收推送通知消息的速度感兴趣(使用GCM)。
发送推送通知到达设备需要多长时间,特别是当我发送消息给大量设备时(例如100,000或甚至1,000,000)?

解决方案

GCM设计为在设备可用时立即发送通知。正如 GCM信息生命周期文档中所述:


在最好的情况下,如果设备连接到GCM,屏幕打开并且没有节流限制,则消息将被正确传递


如果您指的是平均速度,则会在 Google IO '15 (01:57):


<如果设备在线,平均可达50毫秒..


还有一些因素可以影响交付通知本身。其中一个例子是设置 delay_while_idle 标志(有关更多信息,请参阅消息文档的GCM生存期)。希望这可以让你清楚你在问什么。干杯! :D



PS:根据最近的IO '16,他们现在拥有 Firebase云消息传递,其核心基于GCM。小心检查一下。 ;)

I'm interested on the speed of receiving push notification messages (using GCM). How long does it take for sent push notifications to reach the device, specially when i send a message to a large number of devices (like 100,000 or even 1,000,000) ?

解决方案

GCM was designed to send the notification as soon as the device is available. As stated in the GCM Lifetime of a Message docs:

In the best-case scenario, if the device is connected to GCM, the screen is on and there are no throttling restrictions, the message will be delivered right away.

If you are referring to the average speed, it was mentioned back in Google IO '15 (01:57):

..50milliseconds on average if the devices are online..

There are also some factors which you can affect the delivery of the notification itself. One example of this is setting the delay_while_idle flag (refer to GCM Lifetime of a Message docs for more info). Hope this gives clarity to what you were asking. Cheers! :D

PS: As per the recent IO '16, they now have the Firebase Cloud Messaging, where it's core is based on GCM. Care to check it out. ;)

这篇关于GCM - 推送通知到达设备需要多长时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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