NativeScript / NativeScript/firebase
[@nativescript/firebase-messaging] FIS_AUTH_ERROR on Android
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 62
- フォーク
- 53
- 平均マージ
- 8日 4時間
- マージ済み PR(30日)
- 2
説明
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?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、main.ts と firebaseServices.ts に示されているバージョンと呼び出しを使って FIS_AUTH_ERROR を再現し、その後 google-services.json を含む Firebase Android 設定を調査します。設定または統合の原因を特定し、messaging().getToken() が報告されたエラーなしでトークンを返すことを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, firebase, typescript
- 領域
- mobile-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100