You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using both firebase-remote-config and firebase-analytics on the same project throws core.js:4197 ERROR Error: Uncaught (in promise): Firebase app already exists.
This happens due to both modules require the call to their initializeFirebase respectively and both functions rejects if window.firebase is already initialized. Note that if you do not call those functions, the services are not operational due to the firebase service member not being set (this.analyticsRef and this.remoteConfigRef).
To Reproduce
Create a vanilla project.
Add both @capacitor-community/firebase-analytics and @capacitor-community/firebase-remote-config.
Add an ionic service for each of the services.
On each of the services call initializeFirebase
Expected behavior
Support using both @capacitor-community/firebase-analytics and @capacitor-community/firebase-remote-config on the same project.
Describe the bug
Using both
firebase-remote-config
andfirebase-analytics
on the same project throws core.js:4197 ERROR Error: Uncaught (in promise): Firebase app already exists.This happens due to both modules require the call to their
initializeFirebase
respectively and both functions rejects ifwindow.firebase
is already initialized. Note that if you do not call those functions, the services are not operational due to the firebase service member not being set (this.analyticsRef
andthis.remoteConfigRef
).To Reproduce
@capacitor-community/firebase-analytics
and@capacitor-community/firebase-remote-config
.initializeFirebase
Expected behavior
Support using both
@capacitor-community/firebase-analytics
and@capacitor-community/firebase-remote-config
on the same project.Additional context
Ionic:
Ionic CLI : 6.11.8 (/home/vagrant/.config/yarn/global/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.4.2
@angular-devkit/build-angular : 0.1000.8
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.0.8
@ionic/angular-toolkit : 2.3.3
Capacitor:
Capacitor CLI : 2.4.2
@capacitor/core : 2.4.2
Utility:
cordova-res : not installed
native-run (update available: 1.2.2) : 1.2.1
System:
NodeJS : v12.18.3 (/home/vagrant/.nvm/versions/node/v12.18.3/bin/node)
npm : 6.14.6
OS : Linux 4.9
The text was updated successfully, but these errors were encountered: