[IOS] The default FirebaseApp instance must be configured before the default Authinstance can be initialized
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- firebase, ios, typescript
- 領域
- authentication, mobile
調査の方向性
app/webpack:/--/node_modules/@nativescript/firebase-auth/index.ios.js にある失敗している addAuthStateChangeListener パスから始め、特に 907 行目と 1237 行目付近の参照を確認します。iOS の初期化順序を再現し、報告されている applicationDidFinishLaunchingWithOptions の workaround と比較します。デフォルトの Firebase アプリが呼び出し元によって明示的に設定されていない場合でも、認証で例外がスローされなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi @NathanWalker
When I call firebase().auth().addAuthStateChangeListener that will throw error
NativeScript encountered a fatal error: Uncaught Error: The default FirebaseApp instance must be configured before the default Authinstance can be initialized. One way to ensure this is to call `FirebaseApp.configure()` in the App Delegate's `
application(_:didFinishLaunchingWithOptions:)` (or the `@main` struct's initializer in SwiftUI).
at
get native(file: app/webpack:/--/node_modules/@nativescript/firebase-auth/index.ios.js:1237:0)
at addAuthStateChangeListener(file: app/webpack:/--/node_modules/@nativescript/firebase-auth/index.ios.js:907:0)
to prevent this error I should declare init on a delegate applicationDidFinishLaunchingWithOptions then it work !
Do you have an idea what happen
Thanks
- 主要言語
- TypeScript
- スター
- 62
- フォーク
- 53
- 平均マージ
- 8日 4時間
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 件 ·
-
bug ios
NativeScript/firebase#287 · 担当者 1 名 ·
-
Uh-Oh Shazam オープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
NativeScript/firebase#286 ·
NativeScript/firebase の issue をすべて見る
似ている issue
-
clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
supermomonga/zcode-acp#24 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
growthbook/growthbook#7100 ·
-
triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100