5

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.

Eran
  • 387,369
  • 54
  • 702
  • 768
yac mac
  • 73
  • 1
  • 3

2 Answers2

6

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.

Eran
  • 387,369
  • 54
  • 702
  • 768
  • thnxs, 1 more question - is there a website which lists different gcm servers in which ever we like ? – yac mac Dec 14 '14 at 19:19
  • 1
    You should edit your question, GCM doesn't have a 1000 users limit, it has a 1000 simultaneous message sending limit ! – Leonardo Dec 15 '14 at 05:29
  • @LeonardoFerrari, _registration_ids: This parameter specifies a list of devices (registration tokens, or IDs) receiving a multicast message. It must contain at least 1 and at most 1000 registration IDs._ – sigod Aug 27 '15 at 23:55
0

FCM has replaced GCM, But still if someone is looking for this answer, You can check this code from google.

multicast messages

Idea is to create a queue Queue queue = QueueFactory.getQueue("MulticastMessagesQueue");

and add 1000 device ids to this queue and post a send message.

complete server side code implementation server side implementation of google io 2016 app

nkalra0123
  • 2,281
  • 16
  • 17