Skip to content
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

Open
3 of 12 tasks
wibimaster opened this issue Feb 22, 2024 · 3 comments
Open
3 of 12 tasks

feat(firestore): Include "metadata" property on snapshot #567

wibimaster opened this issue Feb 22, 2024 · 3 comments

Comments

@wibimaster
Copy link

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Messaging
  • Cloud Storage
  • Performance
  • Remote Config

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 or addDocumentSnapshotListener could have an option to add metadata property on snapshot result :)

Alternative options

No response

Additional context

No response

Before submitting

@robingenz
Copy link
Member

I close this as duplicate of #467.

@wibimaster
Copy link
Author

@robingenz That's not really a dup', because it's not the same feature ; #467 is about getDocumentChanges() of the querySnapshot, and #567 is about metadata property of a listener. But you can do both at the same time in #467 :)

@robingenz robingenz reopened this Feb 26, 2024
@robingenz
Copy link
Member

Sorry, in this case I keep it open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants