Firebase Database Permission denied with read/write permissions set to true

前端 未结 6 1850
予麋鹿
予麋鹿 2020-12-01 18:11

I\'m having trouble writing to my Firebase database in my simple Android app. I\'ve set my database rules to be public:

{
  \"rules\": {
    \".read\": true,         


        
6条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 18:24

    Okay I have tried all above solution and failed. After a while I found that my Project has 2 modules and I call firebase in the second module instead of the main one, so the solution is to add the second one to the firebase project too, and it works.

提交回复
热议问题