You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
To listen to changes in a certain collection, you can register a callback function that gets invoked every time data is changed.
49
+
50
+
To unsubscribe the listener, just invoke the function that was returned when attaching the listener.
51
+
52
+
> NOTE: Due to a bug in the iOS Firestore SDK 'unsubscribe' does not currently work (plugin version 5.0.0), so the plugin is silently ignoring further updates after unsubscribing. This should not hurt your usage in any way though.
> Using **Observables**? [Check the example in the demo app](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/f6972433dea48bf1d342a6e4ef7f955dff341837/demo-ng/app/item/items.component.ts#L187-L198).
66
+
47
67
### `collection.doc()`
48
68
As mentioned, a document lives inside a collection and contains the actual data:
> Using **Observables**? [Check the example in the demo app](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/f6972433dea48bf1d342a6e4ef7f955dff341837/demo-ng/app/item/items.component.ts#L175-L185).
113
+
92
114
### `collection.add()`
93
115
If you want to add a document with an auto-generated ID, use `add` on a *collection*:
0 commit comments