Ionic 5 token refresh push notification

In the ionic Native FCM library, there is onTokenRefresh: FCM - Ionic Documentation

In the Capacitor library in Ionic 5, I do not see such a function. How is it handled in Ionic 5 with the @capacitor/core PushNotification library? Push - Ionic Documentation

I don’t want my users token to expire and they stopped receiving notifications because of it.

If I am blind and have missed something in the documentation, please point it out to me!

1 Like

already 1 year and no solution for this question. This is the closest answer from github Push Notifications Plugin onToken Refresh iOS - Android · Issue #1859 · ionic-team/capacitor · GitHub but it doesn’t answer the question because the repo link is deprecated

Well, after using my app for over a year. The token hasn’t expired. Not sure if it ever will.

But I know that when I implemented push notifications into another app that I made that was a PWA only, the token would expire after 3 months and it would require a refresh.

1 Like

Well, the token expired yesterday. Now I am back to finding a way of refreshing the token.