-
Notifications
You must be signed in to change notification settings - Fork 20
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
Multiple notifications in parrallel #7
Comments
+1 |
I'm not a node js guy, but it appears to me this is probably due to there being That explains why if you send |
Yeah, when you look at the code it uses |
Fix: create a new GCM object everytime you need to send something in parallel. @h2soft I can send a PR, will you merge it and publish to npm? |
Hey folks,
I have a strange behaviour. Sometimes I send multiple notifications in parrallel. It means that I call
gcm.send()
multiple times. I know I could use an array of reg ID instead but it messages are not the same.Everything works fine except when there is one error in one of the notifications. For example when one of the recepient has an expired reg Id, I receive the
NotRegistered
error. My problem is that I get this error for all the other notifications sent at the same time whereas there should be no error for the other recipients. This is strangeThe text was updated successfully, but these errors were encountered: