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.
var listeners =listenerWrapper.listeners; // an Array of listeners added
174
+
// you can store the wrapper somewhere to later call 'removeEventListeners'
175
+
}
176
+
);
177
+
```
178
+
179
+
export function removeEventListeners(listeners: Array<any>, path: string): Promise<any>;
180
+
181
+
### removeEventListeners
182
+
Firebase does not automatically remove listeners when fi. a user logs out.
183
+
So please keep track of these listeners yourself and remove them when appropriate.
184
+
185
+
You can see an example of this in the [demo app](https://github.com/EddyVerbruggen/nativescript-plugin-firebase-demo/blob/master/Firebase/app/main-view-model.js).
186
+
187
+
> Note that there was a bug in the Android runtime that was fixed in NativeScript 2.3.0 which caused a crash when using this function.
188
+
189
+
```js
190
+
firebase.removeEventListeners(
191
+
listeners, // an Array of listeners
192
+
"/users"// the path the listener was previously listening to
0 commit comments