Single Message Transfer Using APNS

I have an IOS and JAVA application on my server. I need to send only one message to several devices at the same time. Is this possible through APNS (are there any services provided by apns, I did not find). I will not be able to get stuck on each token, because it will take time for each click, since push must be at the same time for all device tokens.

+6
source share
1 answer

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

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

+3
source

Source: https://habr.com/ru/post/977974/


All Articles