-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Mass removal of tokens in Meteor 1.7 #342
Comments
It happens when |
@artpolikarpov |
@da314pc If you carefully read the source, then you see that on failed delivery, tokens are nulled, not removed. |
I'll do some digging. were all your tokens removed? |
Not all but many. Thanks goodness I had a duplicate collection for them. In general, I warned. |
I can confirm that this is an issue. As @artpolikarpov stated, the tokens are being being cleared. When this function comes around, null isn't considered in the $and statement and therefore is considered the same as: This therefore removes ALL tokens that are valid. The workaround we have is:
|
This is urgent. Just found that this piece of
raix:push-update
method:...is deleting all tokens from
_raix_push_app_tokens
collection some times!The text was updated successfully, but these errors were encountered: