[@nativescript/firebase-messaging] FIS_AUTH_ERROR on Android
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- android, firebase, typescript
- 領域
- mobile-dev
研究方向
先使用 main.ts 和 firebaseServices.ts 中顯示的版本與呼叫重現 FIS_AUTH_ERROR,然後檢查 Firebase Android 設定,包括 google-services.json。完成的條件是找出設定或整合原因,並確認 messaging().getToken() 能在沒有所回報錯誤的情況下回傳 token。
由索引模型根據 Issue 內容生成。
描述
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?
- 主要語言
- TypeScript
- 星號
- 62
- 分支
- 53
- 平均合併
- 8 天 4 小時
- 30 天內合併 PR
- 2
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NativeScript/firebase 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 48/100
NativeScript/firebase#292 ·
-
難度 3/5 1-2 天 新手友好度 35/100
NativeScript/firebase#289 ·
-
難度 4/5 3-5 天 新手友好度 35/100
NativeScript/firebase#288 · 4 個 reaction ·
-
bug ios
NativeScript/firebase#287 · 已指派 1 人 ·
-
Uh-Oh Shazam 未關閉
難度 4/5 3-5 天 新手友好度 20/100
NativeScript/firebase#286 ·
查看 NativeScript/firebase 的全部 Issue
相似的 Issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 1/5 1 小時以內 新手友好度 85/100
-
Mend: dependency security vulnerability untriaged
難度 2/5 1-3 小時 新手友好度 70/100