Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 17662

'FirebaseApp instance may not be nil. Use FirebaseApp.app() if you'd like to use the default FirebaseApp instance.' Second app in react native for iOS

$
0
0

So, I worked on my react native app while running android emulators for a while, and during that time, I had initialized a second firebase app using @react-native-firebase/app other than my main one which is working fine on both android and iOS. I was fully capable of using the second app I had initialized, but then I began to run it on an iOS simulator and that's when things went downward and I got this error: FirebaseApp instance may not be nil. Use FirebaseApp.app() if you'd like to use the default FirebaseApp instance. whenever I tried to fetch a document and I still haven't been able to fix. I tried logging the second app using console.log(firebase.app('appName') and it would show me all the correct methods and variables so it wasn't undefined. I don't want to add another Google-services.plist file, since that would mess up my analytics. does anyone have any idea as to how I could solve this?


Viewing all articles
Browse latest Browse all 17662

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>