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

send push to multiple tokens #81

Open
lgmkr opened this issue Mar 13, 2015 · 1 comment
Open

send push to multiple tokens #81

lgmkr opened this issue Mar 13, 2015 · 1 comment

Comments

@lgmkr
Copy link

lgmkr commented Mar 13, 2015

Hi, guys, so I have question. What is the rigth way to send push notifications to array of tokens ?
Example, input array ["token1", "token2", "token3"]
What I do

["token1", "token2", "token3"].each do |token|
   APN.notify_async(token, options blah blah)
end

I think this is not a right way to send multiple notifications. Because each time created new persistent connection to apn socket. Or connection always opened ? Please correct me.

@dennislysenko
Copy link

If you read over the readme carefully, it explains that the connection is kept persistent.

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