Push notifications for a large number of devices

这一生的挚爱 提交于 2019-12-25 06:34:51

问题


I am pretty new in the push notifications issue, i want to develop an application for both android and IOS devices, the application should be able to receive real-time push notifications.

The number of users for this app may reach more than 1,000,000 users, i am searching for a good tool for push-notifications.

The most important thing i am concerned of when sending notifications is low-latency, i want to reach a large number of users as fast as possible.

I saw that the service of Google cloud messaging is limited to 1000 users for each request. and any number of users that exceeds this number is sent with batches of 1000, does this effect the speed?

If yes, do you suggest a good push-notifications tool for that purpose?


回答1:


I would suggest you to use OneSignal

Best and easy to use API of GCM for Android and IOS and much more. This will fulfill all your requirements




回答2:


We use GCM with our application.

With GCM one notification can send only to 1000 devices (GCM limit). So you must split your array of devices.

For fastest delivery of Notifications: 1. delay_while_idle - set to false 2. time_to_live - set to zero (But you might want to set this higher if their device is offline) 3. Canonical IDs - Make sure Canonical IDs returned by GCM replace the old PushID in database 4. collapse_key - The most important factor - set it to random or TOD to avoid Google to throttle notifications.

I also recommend

airbop (Android Only)

Pushy



来源:https://stackoverflow.com/questions/37325897/push-notifications-for-a-large-number-of-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!