Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 0a65f8a

Browse files
committed
Adding information regarding access rules.
If the listeners are used, they are indicated to be added after authentication to firebase, if the rules prevent access to data without authentication. TODO: Improve handling of rule-related errors by giving more details of what caused the error if possible. TODO: Check if there is a way to avoid such an access problem.
1 parent 7907727 commit 0a65f8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/DATABASE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,12 @@ Removes values in multiple locations
256256
```
257257

258258
### addChildEventListener
259+
259260
To listen for changes in your database you can pass in a listener callback function.
260261
You get to control which path inside you database you want to listen to, by default it's `/` which is the entire database.
261262

263+
If you have defined access rules that depend on authentication, add listeners after authentication, attempting to access data not authorized by the access rules will prevent your listener from working properly, even if you add them at first. listing some data as just added, which seems to be a bug in Firebase's access rules system.
264+
262265
The plugin will take care of serializing native data structures to JSON data.
263266

264267
```js

0 commit comments

Comments
 (0)