Skip to content

Only [DEFAULT] firebase app is recognized #153

@rrust

Description

@rrust

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
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions