Conrad Media
Conrad Media

Reputation: 87

Send bulk push notification from php server to android devices

i am working on a app where there is need to send bulk push notification from the Php server to android devices . Is there any way to send multiple push notification from Php server to all devices without using any Loop. *because this loop process reduce response time to client from the server.

Upvotes: 1

Views: 2745

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006614

Is there any way to send multiple push notification from Php server to all devices without using any Loop

You can send a message to up to 1000 devices at a time. If you need to send more than that, you will need a loop.

because this loop process reduce response time to client from the server.

The time required by a loop will be minuscule compared the network time it takes for the communications to go from your server to the GCM servers, the time the messages are stored on the GCM servers, the network time for sending the messages from the servers to the devices, etc. The microseconds that the loop will require will be swamped by the seconds that the rest of the process takes.

Upvotes: 3

Related Questions