I’ve just installed Firebase Analytics Plugin and I’m getting this error in Xcode when I try to run the App on my iPhone:
Terminating app due to uncaught exception 'com.firebase.core', reason: 'Default app has already been configured.
I’m obviously also using Firebase as a database in my App, but I’m not configuring it again. This is all the code I’ve added:
logEvent(eventName, eventParams) {
this.firebaseAnalytics.logEvent(eventName, eventParams)
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));
}
For some reason Xcode views this Plugin as a fresh default app configuration?