NativeScript / NativeScript/firebase

[question] firebase-core function initializeAppWithPath(path) for Android

オープン
#79 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

android bug
主要言語
TypeScript
スター
62
フォーク
53
平均マージ
8日 4時間
マージ済み PR(30日)
2

説明

Hello,

I am trying to load a different firebase configuration per environment. I figured that using the initializeAppWithPath() I could point to the Google Services config files for dev and prod for Android and iOS.

For iOS It worked out of the box using the path res://, it points to the App_Resource/iOS folder.

However, for android I do not seem to be able to load the google-services.json at all.

I tried with path res://, ~/ and resolving the path myself and I always get the error firebase.init error: Error: com.tns.NativeScriptException: Failed to find module: "/data/data/com.nativescript/files/app/firebase/dev/google-services.json", relative to: app/

Would you guys be so kind and provide some examples for Android on to which folder the paths res://, ~/ point in the code base?

I am using Angular flavor.

Best

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず initializeAppWithPath(path) のエントリーポイントと、Android が google-services.json をどのように解決するかを追跡し、その後、その挙動を動作している iOS の res:// パスと比較します。Android のパスの例をプロジェクトから特定できるか確認します。完了の条件は、検証済みの Android パスに関するガイダンスを提供するか、再現可能な読み込み修正を特定することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, angular, ios, typescript
領域
mobile-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。