Firebase Permission denied Error

前端 未结 2 1971
半阙折子戏
半阙折子戏 2020-12-03 10:02

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         


        
2条回答
  •  遥遥无期
    2020-12-03 10:28

    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"  
       }
    
    }
    

提交回复
热议问题