Skip to content

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

Description

@erodriguezh

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions