I'm doing a Compose Multiplatform app with Firesto...
# multiplatform
b
I'm doing a Compose Multiplatform app with Firestore, I was able to get Firestore working on iOS, but am struggling a bit on Android. All my viewModels are referenced in common code, but the Firebase.initialize() would be done in MainActivity, but then all the viewModels referenced inside common code have this exception occur. java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.bryankeltonadams.banko. Make sure to call FirebaseApp.initializeApp(Context) first.
I followed this guide, but this guide references a native android and native iOS ui, which I was able to get working for Android, but am struggling with a shared compose ui setup. https://medium.com/@carlosgub/how-to-implement-firebase-firestore-in-kotlin-multiplatform-mobile-with-compose-multiplatform-32b66cdba9f7
figured it out, was missing the google services plugin in the :composeApp build.gradle.kts, apparently not needed for iOS