activitree / meteor-push

Meteor Push Notifications for Cordova and Web/PWA with Firebase (FCM).
MIT License
28 stars 19 forks source link

Clean up of unregistered tokens #18

Closed paulincai closed 3 years ago

paulincai commented 5 years ago

Web Push has a method for requesting a new token when a token is expired or changed for whatever reason. With Cordova a way to remove/update an expired token needs to be implemented in order to avoid a build up of useless tokens in MongoDB. This does not prevent sending messages to valid tokens.

 FCM Sending Error:  {
    "code": "messaging/registration-token-not-registered",
    "message": "Requested entity was not found."
}
paulincai commented 3 years ago

this was deprecated in Firebase.