-
Notifications
You must be signed in to change notification settings - Fork 206
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 registration ID's #42
Comments
You'll have to split your ID's beforehand, as node-gcm doesn't do that for you automatically yet. |
Perfect. Thanks!
|
If anyone else needs to support more than 1,000 devices, you can easily split the tokens up into batches like this:
|
I wrote parallel-batch which does pretty much that: https://www.npmjs.com/package/parallel-batch |
Nice package! Would greatly simplify the code I wrote. |
@hypesystem maybe it would be a good idea to integrate your parallel-batch library into node-gcm, so that batching will be performed automagically? |
I agree, that was the original intention with parallel-batch. As it turns out, though, it's easier said than done. Specifically we want to return errors correctly (as if no batching happened; so if only some of the batches fail, some of the messages will still (possibly) be sent); and we want to handle retries the way the user expects (which is also hard). |
I think it's doable -- in case one of the batches failed, we'll retry it until we run out of |
I would love to see you give it a try. First of all, though, I think we need a new issue to discuss this -- feel free to create it. I will try to gather my thoughts on what behaviour I think we would want, and why, exactly, it is tricky :-) |
Will node-gcm fail if I send it more than 1000 Registrations ID's in a single message as that is all Google support? Do I have to split it up myself before hand?
The text was updated successfully, but these errors were encountered: