capacitor-community / fcm

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

Getting encoded JWT instead of token on Android #104

Closed rukafasha closed 2 years ago

rukafasha commented 2 years ago

Hi everyone, I am having issue with getting token on Android. On iOS works fine.

Describe the bug I am not receiving correct FCM token on Android. Instead, I am receiving JWT.

To Reproduce Steps to reproduce the behavior:

  1. Call FCM.getToken()
  2. Token is received
  3. Expected length is 64 characters
  4. Length is > 130 characters
  5. Turns out that this is encoded FCM JWT token

Expected behavior I should receive FCM token, as on iOS and not JWT

cyril-colin commented 2 years ago

Hi ! this problem as already been reported here : https://github.com/capacitor-community/fcm/issues/99 ;-)

rukafasha commented 2 years ago

You da real MVP! :) Many thanks, solved it in a minute!