MatthieuLemoine / push-receiver

A library to subscribe to GCM/FCM and receive notifications within a node process.
https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0
MIT License
199 stars 75 forks source link

Does the fcm token expire? #39

Open markibanez opened 3 years ago

markibanez commented 3 years ago

I know that firebase cloud messaging tokens are longed lived but Google says they still expire. This project doesn't seem to have any mechanism to detect expiry of tokens or to renew token. Something like onNewToken in the Android SDK. How would we handle token expirations? Do we have any way of verifying if fcm tokens are still valid or not?