Open grumpygary opened 2 years ago
same issue......
resolved. it's a google / firebase setup issue. In Firebase. make sure you register ALL the fingerprints for things like upload keys, signing keys, etc, for both debug and release. Also, make sure you're using the proper android api key from Google's GCP API / Credentials page (the one firebase shows is the web key, not the android one).
Even that wasn't enough for me. I had to install the test app from the Play Store in order for it to finally work. I have no idea why. You might even want to try that first.
@grumpygary yes correct.. my config api key is wrong.. thanks
Everything was working several months ago, but recently I started getting "FIS_AUTH_ERROR" on Android, which apparently means that my API key is no longer valid, though I downloaded the firebase google-services.json and it's identical to the one on the google cloud console (android).
Expected behavior getToken() should return a token for the currently logged in Android user.
Instead it returns error: FIS_AUTH_ERROR (java.io.IOException)
Package.json
"cordova-plugin-fcm-with-dependecy-updated": { "ANDROID_DEFAULT_NOTIFICATION_ICON": "@drawable/notify", "ANDROID_FIREBASE_BOM_VERSION": "26.0.0", "ANDROID_FCM_VERSION": "21.0.0", "ANDROID_GOOGLE_SERVICES_VERSION": "4.3.4", "ANDROID_GRADLE_TOOLS_VERSION": "4.1.0", "IOS_FIREBASE_MESSAGING_VERSION": "~> 7.4.0" },