[@nativescript/firebase-messaging] FIS_AUTH_ERROR on Android
Hi, I am trying to use @nativescript/firebase-messaging and I cannot get it working. "@nativescript/core": "^8.3.5", "@nativescript/android": "~8.3.1" also not working with "@nativescript/android": "~8.2.0"
Here is my code
// main.ts firebase().initializeApp() .then((app: FirebaseApp) => { console.log("Firebase init done!"); firebase().messaging().showNotificationsWhenInForeground = true; firebase().crashlytics().setCrashlyticsCollectionEnabled(true); }).catch((error: Error) => { console.log("Firebase init failed", error); });
// firebaseServices.ts const messaging = firebase().messaging(); messaging.getToken() .then((token: string) => { console.log("Token", token); }).catch((e: Error) => { console.log("Token error: ", e); });
So, when I try to get the PN token, I got this error. Error: java.util.concurrent.ExecutionException: java.io.IOException: FIS_AUTH_ERROR
I have tried re-install packages & re-download google-services.json etc. Still have the same here. Please any help?