Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[@nativescript/firebase-messaging] FIS_AUTH_ERROR on Android

Open
#153 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, firebase, typescript
Domain
mobile-dev

Research direction

Start by reproducing the FIS_AUTH_ERROR using the versions and calls shown in main.ts and firebaseServices.ts, then inspect the Firebase Android configuration, including google-services.json. Done means identifying the configuration or integration cause and confirming that messaging().getToken() returns a token without the reported error.

Written by the indexing model from the issue text.

Description

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?

Dominant language
TypeScript
Stars
62
Forks
53
Avg merge
8d 4h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NativeScript/firebase

All issues in NativeScript/firebase

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.