iOS Extension - Fatal Exception: com.firebase.core Default app has already been configured.
I run the Fir.configure() in the viewDidLoad() method and some events pass and get through to Firebase.
Can someone help me figure this out.. Google is not friendly enough.
PS: Yes I created a second .plist, and a second app in Firebase Console. PPS: Yes I selected the correct target for each GoogleServices plist
I'm seeking the solution..
I don't know if you're still looking for a solution but I had the same issue, using firebase with extension.
I ended up doing this :
if(FIRApp.defaultApp() == nil){
FIRApp.configure()
}
This will check if the app is already configured so that there is no crash.
I had the same issue and I resolved it by making changes in two places in my application (check your syntax for swift version):
In AppDelegate.swift override a following method:
override init() { FirebaseApp.configure() }
In your ViewController.swift's viewDidLoad() method, write this code:
if FirebaseApp.app() == nil {
FirebaseApp.configure()
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With