capacitor-firebase icon indicating copy to clipboard operation
capacitor-firebase copied to clipboard

feat: Cloud Firestore

Open EinfachHans opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe:

Support Firebase Firestore

Describe the solution you'd like:

Currently using this Cordova Plugin: https://github.com/dpa99c/cordova-plugin-firebasex

Additional context:

EinfachHans avatar Mar 24 '22 21:03 EinfachHans

@robingenz Do you already have a timeline in your mind for this? Just curious whether its worth it to use the Firebase JS SDK for now and wether we could easily switch then later.

Great work you're doing!

blitzbohne avatar Oct 08 '22 17:10 blitzbohne

@alpfactory-alex Not yet. Migrating from the Firebase JS SDK to the plugin should be easy, as I'm trying to adopt the interfaces.

robingenz avatar Oct 09 '22 07:10 robingenz

This could be a great plugin :) 💯(actually all of them, Database, Storage and FireStore at least)

Thank you for the awesome work, the Auth plugin works flawlesly.

AllTerrainDeveloper avatar Jan 01 '23 12:01 AllTerrainDeveloper

Would anyone be interested in testing a first development version of this plugin and giving some feedback afterwards?

robingenz avatar Sep 26 '23 11:09 robingenz

Yes, but what we need most is background upload (files that are stored in the file system) to Storage and of course the standard Storage functionality.

bojanbizjak avatar Sep 27 '23 06:09 bojanbizjak

Yes, but what we need most is background upload (files that are stored in the file system) to Storage and of course the standard Storage functionality.

That's what's planned next. Feel free to subscribe to #63.

robingenz avatar Sep 27 '23 06:09 robingenz

Here is the first dev version:

npm i @capacitor-firebase/[email protected]

Docs: https://capawesome.io/plugins/firebase/cloud-firestore/

I appreciate any feedback. There are a few limitations currently, see:

  • #438
  • #439
  • #443
  • #444

robingenz avatar Sep 27 '23 08:09 robingenz

I just did the first tests and there seems to be big differences in performance. The Firebase Swift SDK is on average 4x faster when retrieving documents (tested on iOS 17.0.1). In my case I retrieve 20 documents. This takes an average of 95ms with the Firebase Swift SDK and an average of 455ms with the Firebase JS SDK.

robingenz avatar Sep 28 '23 12:09 robingenz

We'd be very interested in testing this at https://reflect.app

maccman avatar Sep 28 '23 14:09 maccman

Super excited! I did a quick look at it and it seems that FieldValue is not yet implemented and hasn't been ticketed, so I created an issue for it.

ocavue avatar Sep 28 '23 14:09 ocavue

@maccman That would be great! Let me know if you need anything or if you are missing features.

@ocavue Thanks, i will take a look. 👍

robingenz avatar Sep 29 '23 07:09 robingenz