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

How to Batch send push #70

Open
thues opened this issue Mar 16, 2016 · 6 comments
Open

How to Batch send push #70

thues opened this issue Mar 16, 2016 · 6 comments

Comments

@thues
Copy link

thues commented Mar 16, 2016

when we send to many devices with the same message, is there a method to make it called once ?

@nathany
Copy link
Contributor

nathany commented Mar 16, 2016

No there is not.

If there was, some time could be saved encoding the message, but it would still need to be sent one-by-one to Apple, which is the bulk of the time.

@thues
Copy link
Author

thues commented Mar 17, 2016

Actually i did it one by one , but there was another problem : If i send large number of msg, there will be many devices can not recv the push and there are little overdue tokens when i fetch feedback . How can i use this package to send batch pushes correctly

@thues
Copy link
Author

thues commented Mar 17, 2016

If i send the push msg slowly i can get more invalid tokens than more fast push

@nathany
Copy link
Contributor

nathany commented Mar 17, 2016

I'm not sure if I understand the problem you're running into. Is it disconnecting after invalid device tokens and causing problems? http://redth.codes/the-problem-with-apples-push-notification-ser/

This library attempts to handle those issues internally, but maybe you're still running into issues?

I've also been working on another library that uses Apple's new HTTP/2 Notification API, but it is currently slow when doing batch pushes. https://github.com/RobotsAndPencils/buford

@thues
Copy link
Author

thues commented Mar 18, 2016

Thanks . Now i think i get the point . the problem is that the size of send Buffer(50) , gap of reconnect (1second), the push scale is 1000 pushes per second. If there are many invalid tokens, then it could not push all out successfully.

@nathany
Copy link
Contributor

nathany commented Mar 18, 2016

Yah, perhaps that buffer should be larger.

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