Description
Issue Description
I have set the flag PARSE_SERVER_CLEANUP_INVALID_INSTALLATIONS = 1
on Heroku. On some occations my users are reporting that push have stopped working, and when I check their Installation object, the deviceToken is undefined
. It has worked for them before.
Is it possible that the clean up flag is also un-setting valid deviceTokens, on some occations?
What happens if I don`t set the flag, will the push sending abort when reaching an invalid deviceToken? Or will it just log, and continue sending pushes to valid ones?
Steps to reproduce
Set up environment with versions as described below. Set the flag PARSE_SERVER_CLEANUP_INVALID_INSTALLATIONS=1
on Heroku. Use parse-server for a while, and see that some installation objects may get deviceToken=undefined
after some time.
Expected Results
Valid deviceTokens are not un-set.
Actual Outcome
Valid deviceTokens may get un-set.
Environment Setup
-
Server
- parse-server version: 2.7.1
- Operating System: Heroku
- Hardware: Heroku
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Heroku
-
Database
- MongoDB version: mLab via Heroku
- Storage engine: mLab via Heroku
- Hardware: mLab via Heroku
- Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): mLab via Heroku