capacitor-community / fcm

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

The refreshToken function returns the Firebase JWT session token instead of the FCM token #137

Closed bipoza closed 1 year ago

bipoza commented 1 year ago

Describe the bug The refreshToken function returns the Firebase JWT session token instead of the FCM token.

To Reproduce To reproduce it, just compare the value of the function getToken() and refreshToken().

Expected behavior What is expected with the refreshToken function is to delete the old token and get a new one.

FilipKrizanic commented 1 year ago

Is this on iOS or also on Android? I am just asking because on iOS APNs token is returned whereas on Android PushID. If this is the case then you could get some info on "closed late to the party" answer: https://github.com/capacitor-community/fcm/issues/99#issuecomment-1413657559