I am Very beginner to firebase and trying to get value from my database.
but it showing me same error every time.
W/SyncTree: Listen at /child fa
Listen at /child failed: FirebaseError: Permission denied
It means that the node "child" does not have access permission.
For a more secure approach, define the rule as follows:
{
"rules": {
"child": {
".read": "auth != null && auth.uid !=null" ,
".write": "auth != null && auth.uid !=null"
}
}
It's because you are not authorized to the Database, check the Rules Tab in the Realtime database
If it's
{
"rules": {
".read": "auth != null",
".write":"auth != null"
}
}
This means only authorized user's can write and read the Data.
Changing to
{
"rules": {
".read": true,
".write":true
}
}
Allows anyone to write the Database
When going for Production be sure to use the first one