-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(firestore): Include "metadata" property on snapshot #567
Comments
I close this as duplicate of #467. |
@robingenz That's not really a dup', because it's not the same feature ; #467 is about |
Sorry, in this case I keep it open. |
+1 from me. Would be great to have this feature. 😊 |
I've drawn a sketch of how the interface could look like, however I'm a bit hesitant to touch the corresponding native code. |
@phjardas Thank you for the inspiration! I would change a few types, see #705. Maybe I'll get to the native implementation this weekend. But you are welcome to try it and create a PR against https://github.com/capawesome-team/capacitor-firebase/tree/feat/issue-567. |
* Add Android, remove `source` option The `source` option is only supported on the web platform and does not exist in the Android SDK. * Revert omission of `source` option, complete Android implementation * pr updates * pr update * format code * Add iOS implementation * Add iOS implementation
* feat(firestore): include `metadata` property on snapshot * docs * feat(firestore): include metadata property on snapshot (#567) (#707) * Add Android, remove `source` option The `source` option is only supported on the web platform and does not exist in the Android SDK. * Revert omission of `source` option, complete Android implementation * pr updates * pr update * format code * Add iOS implementation * Add iOS implementation --------- Co-authored-by: Philipp Jardas <philipp@jardas.de>
Plugin(s)
Current problem
Firestore SDK permits to save data offline and persist online when connection is active.
It let us know when the data is saved offline or online.
This Capacitor plugin doesn't have this option.
Preferred solution
Official documentation (web, swift, java) : https://firebase.google.com/docs/firestore/manage-data/enable-offline?hl=fr#web-modular-api_2
Is it possible to have the same feature on this Capacitor plugin ?
The
addCollectionSnapshotListener
oraddDocumentSnapshotListener
could have an option to add metadata property on snapshot result :)Alternative options
No response
Additional context
No response
Before submitting
The text was updated successfully, but these errors were encountered: