简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM