Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending same notification to multiple devices #361

Open
emresa37 opened this issue Oct 8, 2018 · 1 comment
Open

Sending same notification to multiple devices #361

emresa37 opened this issue Oct 8, 2018 · 1 comment

Comments

@emresa37
Copy link

emresa37 commented Oct 8, 2018

Is there any way to send multiple notification without using loop. Like firebase's "registration_ids" ?

@drunkendaddy
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants