user reset should invalidate old push notification registration token
- user uses app
- hits "reset"
- new user (id+token) is created
- gets the same
pushnotificationRegistrationToken
, since it's the same device - now two users have the same
pushnotificationRegistrationToken
- two push notifications get sent to the same device
solution:
- make
pushnotificationRegistrationToken
"unique" -
i.e. on registration invalidate older user's Token -
test: run locally on device. observe your device's user. on reset, the pushnotificationRegistrationToken
should "move" to the newer user, the older gets `(userreset) -
deploy -
"migrate" current existing affected usersso few users, let's wait until somebody complains. can be corrected by resetting the user
related to #269, but should function independently, too