ventsi.slav
ventsi.slav

Reputation: 332

GoogleCloudMessages Server to Device delay

I have a server with sql database. Also have about 100k users on android application. What I need now is to send immediately notifications from the server to all devices.

Im researching the GCM system but as I see there`s a huge delay on the receiving side. What I need is when I click the send button on my server,everyone device to receive it in a few seconds.

Is the delay only happening when using the HTTP connection? Is it going to be different with the XMPP connection ?

Upvotes: 0

Views: 77

Answers (2)

injecteer
injecteer

Reputation: 20699

In general the GCM is the right choice for massive broadcasting. On the other hand the messages are not guaranteed to be delivered immediately, the delay might be up to 25(!) minutes given, that all devices have your app up and running.

See Google Cloud Messaging - messages either received instantly or with long delay for explanations why

Upvotes: 1

guy_fawkes
guy_fawkes

Reputation: 965

You are trying to broadcast a message to nearly 100k users and currently xmpp downstream messaging does not support broadcasting. Use http server to send message to 1000 devices at a time. This can be improved by using multi curl. see this https://github.com/mseshachalam/GCMMessage-MultiCURL

Upvotes: 1

Related Questions