Android Firebase onDataChange is not called?

前端 未结 2 1040
南旧
南旧 2020-12-11 22:37

I have more than 40,000 nodes in my Firebase Database. But whenever I am trying to read a key from my Android code, the onDataChange method is not getting calle

2条回答
  •  没有蜡笔的小新
    2020-12-11 23:15

    Open Firebase link -> Database -> Rules -> Probably values here are false in your case. Make it true as the following.

      {
        "rules": {
          ".read": true,
          ".write": true
        }
      }
    

提交回复
热议问题