简体   繁体   English

一次将消息发送到所有用户设备的最佳方法是什么?

[英]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.

相关问题 检查用户的互联网连接以在打开时发送通知的最佳方法是什么? - What is the best way checking users' internet connection to send notification when it is on? 通过设备发送数据的最佳方法? (Android) - Best way to send data through devices? (Android) Google Cloud Messaging:向“所有”用户发送消息 - Google Cloud Messaging: Send message to “all” users 在用户之间发送图像并在Android中将其保存在服务器中一段时间​​的最佳方法是什么? - What's the best way to send images between users, and keep it in a server for a time in Android? 将gcm消息以1000位用户的组发送给所有10000位用户 - send gcm message in groups of 1000 users to all 10000 users 在运行相同应用程序的设备之间发送消息的最佳方法? - Best way to send messages between devices running the same application? 从我的 android 应用程序将传感器数据发送到我的计算机的最佳方式是什么? - What is the best way to send sensor data to my computer from my android app? 如何向我的应用程序的所有用户显示消息? - How to display message to all users my application? 如何向我的所有用户发送Android通知? - How to send Android Notifications to all my Users? 在XMPP Android上发送笑脸的最佳方法是什么 - What is the best way to send smiley on xmpp android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM