[英]What is the best way to send a message to all my users' devices at once?
I have an app in the Android market, and I have over 50 thousands users. 我在Android市场上有一个应用程序,并且有超过5万名用户。 I need to send to all my users a message at a certain time.
我需要在特定时间向所有用户发送消息。 What is the best way to send a message to all my users' devices at once?
一次将消息发送到所有用户设备的最佳方法是什么?
I was reading about Android GCM. 我在阅读有关Android GCM的文章。 GCM requires each app to be registered and have a unique id.
GCM要求每个应用程序都必须注册并具有唯一的ID。 It also says that I can only send a message to a limited number of device (1000).
它还说我只能将消息发送到有限数量的设备(1000)。 I couldn't understand if it meant a 1000 device at once or what?
我不知道这是一次意味着1000台设备还是什么? And I really don't need the IDs, because I'm sending the same message to all my users.
而且我真的不需要ID,因为我正在向所有用户发送相同的消息。
Any ideas? 有任何想法吗?
The 1000 limit applies when you send the same message to multiple devices - you are allowed to specify up to 1000 Registration IDs in the JSON request. 当您将同一封邮件发送到多个设备时,将应用1000个限制-您可以在JSON请求中最多指定1000个注册ID。
If you want to send the same message to more than a 1000 users, you'll have to split them into groups of 1000 Registration IDs and send to each group in a separate request to GCM server. 如果您要将同一封邮件发送给1000个以上的用户,则必须将它们分成1000个注册ID的组,然后在单独的请求中发送给每个组,分别发送给GCM服务器。
GCM requires that you specify the Registration IDs of all devices that should receive the notification. GCM要求您指定应接收通知的所有设备的注册ID。 There is no way to broadcast a message to all users without specifying their Registration IDs.
如果不指定其注册ID,则无法向所有用户广播消息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.