MatthieuLemoine / electron-push-receiver

A module to bring Web Push support to Electron allowing it to receive notifications from Firebase Cloud Messaging (FCM).
https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0
MIT License
194 stars 69 forks source link

Reinstalling an app that has already registered with FCM #22

Closed DrifterAtSea closed 2 years ago

DrifterAtSea commented 6 years ago

If an app registers with FCM and receives a token and the client stores the token on the backend and then the user uninstalls the app and reinstalls it (or just clears the app's cache), is it possible for the client to retrieve the token from the backend and then reuse it when it attempts to register with FCM?

I assume that this is possible but only if my code would actually store the token back in the same place where it was originally stored in cache.

DrifterAtSea commented 6 years ago

After playing around with the push-receiver, it appears that you can do this.

hieu-ht commented 2 years ago

After playing around with the push-receiver, it appears that you can do this.

@JohannBlake Would you have any hints or insightful guidelines to implement your idea? Thank you