-
-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
When FireBase is initialized with a name for the app like this:
initializeFirebaseApp(serviceAccount, 'foo');
I'm getting: Error: The default Firebase app does not exist. Make sure you call initializeApp() before using any of the Firebase services.
When using the firebase initializeApp() function like this:
initializeApp({ credential }, 'foo');
restore() for example fails with a "firebase is not initialized" error.
The only way to make it work for now is to call:
initializeApp({ credential }, '[DEFAULT]');
right before using any functions from this package.
The problem might be that throughoput this library everytime when getFirestore() is called it is done so without the name of the initialized app, which should be getFirestore(getApp(''foo")).
Metadata
Metadata
Assignees
Labels
No labels