GCM有1000个用户的限制。如果我们需要更多?更多、用户、GCM

2023-09-07 18:07:07 作者:┃流年谱写我们消逝的爱恋

如果我理解正确的话,谷歌云消息只能发送一个消息到1000个不同的手机。但是,如果我们需要把这个数字提高到100万,这可能吗?

If I understand it correctly, Google Cloud Messaging can only send one message to 1000 different phones. But what if we need to increase this number to 1 million, is that possible ?

我试图去通过文档但我没有发现任何东西。

I tried to go through the documentation but I did not find anything.

推荐答案

如果你需要发送同样的消息到超过1000个注册的ID,您只需拆分发送进程进入1000注册ID的群体。每个小组将在一个单独的请求GCM服务器发送。

If you need to send the same message to more than 1000 Registration IDs, you simply split the sending process into groups of 1000 Registration IDs. Each group would be sent in a separate request to GCM server.