-
Notifications
You must be signed in to change notification settings - Fork 120
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
Max. number of token to send notification to? #123
Comments
I didn't try to send so many notifications so I can't say for sure |
Yes, you can put in thousands of tokens into the request. Just to share some stats that I have after using this library. The old binary-method (sending to gateway.push.apple.com) which may/will be discontinued by Apple on 31-Mar-2021, is still the fastest way. Sent using Amazon EC2 T3.small server with ssl-verification turned off.
*note : Note the time, thus affecting the speed. |
Great thank you for your complete info and answer, great help. |
In the sample code, we can see
$deviceTokens = ['<device_token_1>', '<device_token_2>', '<device_token_3>'];
At this time, for me it works fine for 3 tokens, all devices received the message.
So my question: is there a max. number of token I can send the notification at the same time?
If I have 4000 receivers, coud I add my 4000 tokens at a time and then call the push function or should I split into smallest packages (ie 1000 receivers)?
Thank you in advance for your help.
Regards
Joe
The text was updated successfully, but these errors were encountered: