I am trying to integrated UIKit for android to an existing app using these tutorials:
While I have been successful and everything builds well, when I start the app and do a call to FirebaseAuth , the app crashes. The crash report indicates: Default FirebaseApp is not initialized in this process com.swiftoffice.swiftmed. Make sure to call FirebaseApp.initializeApp(Context) first.
This was not required before I imported UIKit into my application. When I called FirebaseApp.IntializeApp(Context) in my application and attempted FirebaseAuth again, another crash appeared indicating: java.lang.NullPointerException: Attempt to invoke virtual method ‘com.google.firebase.auth.FirebaseUser com.google.firebase.auth.FirebaseAuth.getCurrentUser()’ on a null object reference.
For additional reference, I am making a call to this function: FirebaseAuth.getInstance().getCurrentUser() != null when both crashes are triggered. I have not done anything additional in my Firebase or app and only attempted to follow the above tutorials up to this point. I am using Firebase Authentication, Firebase Database, Firebase Storage, Firebase Functions, Crashlytcs and Remote Config.