Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Broadcasting single message using APNS

I have an IOS app and JAVA on my server. I need to send only a single message to multiple device on same time. Is it possible via APNS(is there any service provided by apns, i didn't find). It will be impossible me to loop for every token because it will take time for every push as push must be on same time to all device tokens.

like image 396
Rahul Avatar asked Nov 10 '14 09:11

Rahul


1 Answers

You have no alternative to iterating over the tokens and sending a message for each token. Even if you had such an alternative, and you could deliver all the device tokens at the same type to the APNS servers, the APNS servers would still have to send the message to all those tokens, which would take time.

The best you can do is use multiple threads, each having its own connection to APNS servers, and split the device tokens among them. That's the fastest way to deliver a large number of messages (regardless of whether they all have the same content or not) to Apple.

like image 184
Eran Avatar answered Nov 18 '22 20:11

Eran