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
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 theApp_Resource/iOSfolder.However, for android I do not seem to be able to load the
google-services.jsonat all.I tried with path
res://,~/and resolving the path myself and I always get the errorfirebase.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