public Collection<EnhancedApnsNotification> push(Collection<String> deviceTokens, String payload);
It's not actually sending to multiple devices at once. The method implementation loops through the deviceTokens and send the push notification one by one.
it seems apple does not allow sending to multiple devices in a single request.
Also from above link:
When sending many remote notifications, you can establish multiple connections to these servers to improve performance. For example, if you have multiple provider servers, each one can establish its own connection.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Originally posted by: drunkendaddy
though this library has a method:
public Collection<EnhancedApnsNotification> push(Collection<String> deviceTokens, String payload);
It's not actually sending to multiple devices at once. The method implementation loops through the deviceTokens and send the push notification one by one.
From APN docs:
it seems apple does not allow sending to multiple devices in a single request.
Also from above link: