firebase-kotlin-sdk icon indicating copy to clipboard operation
firebase-kotlin-sdk copied to clipboard

Firestore: support for specifying databaseId

Open lynnfield opened this issue 10 months ago • 1 comments

This commit adds support for specifying the databaseId when creating a FirebaseFirestore instance.

This allows users to connect to a specific database within their Firebase project.

The firestore function now accepts an optional databaseId parameter. If not provided, it defaults to the default database for the project.

Additionally, the NativeFirebaseFirestoreWrapper now stores the databaseId and uses it when initializing the Firestore instance.

lynnfield avatar Jan 24 '25 14:01 lynnfield

I would also be interested in that one. @Reedyuk would be great if you could have a look at these changes.

alexandrefavre4 avatar May 12 '25 13:05 alexandrefavre4

I'm interested in this solution. @lynnfield @Reedyuk is this PR intending to be merged?

dominicoder avatar Jul 25 '25 07:07 dominicoder

Merged and available here: https://github.com/DatL4g/firebase-kotlin-sdk

For more information, read this comment: https://github.com/GitLiveApp/firebase-kotlin-sdk/pull/738#issuecomment-3166443339

DatL4g avatar Aug 08 '25 03:08 DatL4g