Anonymous - 2019-04-14

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:

https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns

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.