This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
Android. android.context not available before application.start() is called. #156
Labels
Milestone
I was calling fireBase.init() before the application.start() in app.js.
It worked in IOS, but on Android (real device and emulator) it didn't work. The log traced the error to firebase.android.js line 185
com.facebook.FacebookSdk.sdkInitialize(appModule.android.context);
.appModule.android.context
was undefined/null.I changed the code to run fireBase.init() after application.start() and it worked.
Is this a Nativescript bug, nativescript-plugin-firebase bug or just expected behaviour?
The text was updated successfully, but these errors were encountered: