capacitor-community / fcm

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

Invalid Registration on Ionic-vue Android #113

Closed fahadalidev closed 1 year ago

fahadalidev commented 1 year ago

Describe the bug

I'm using ionic-vue and fcm is working fine on ios. But on android returned token cannot using to send the notification. It always says "{"multicast_id":62279612766420011,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"}]}" while sending notification against android returned token.

xeaiow commented 1 year ago

I same issue, did you solved it?

shing1630 commented 1 year ago

I have the same problem too. The android token string is way too long compare with the ios one. Anyone solve it?

shing1630 commented 1 year ago

I have the same problem too. The android token string is way too long compare with the ios one. Anyone solve it?

It returns the JWT in android. we can find the workaround here: https://github.com/capacitor-community/fcm/issues/99

jcesarmobile commented 1 year ago

should be fixed by https://github.com/capacitor-community/fcm/pull/111