capacitor-community / fcm

Enable Firebase Cloud Messaging for Capacitor apps
https://capacitor.ionicframework.com/docs/
MIT License
237 stars 83 forks source link

How to handle refreshToken? #42

Closed casper5822 closed 4 years ago

casper5822 commented 4 years ago

How to handle the refreshToken events?

In the capacitor Push Notification plugin is implemente the onNewToken() method. But no listener is availble, only the registered one. Is the event fire in the register listener, if not, how to handle the refreshToken problem?

best regards.

stewones commented 4 years ago

Today there's no way, it's not implemented. but you can always check for the token on app initialisation.