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

前端 未结 6 1879
予麋鹿
予麋鹿 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:17

    Complete Solution:

    1). Firstly go to Authentication Tab and select SIGN-IN-METHOD turn Anonymous On

    2). Secondly go to Database Tab and write Rule

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

    3). Thirdly go to Storage Tab and write following rule

    service firebase.storage {
     match /b/myapplicationname-f2266.appspot.com/o {
     match /{allPaths=**} {
     allow read, write;
    }}}
    

    Note This solution is only for testing purpose with following steps you are giving public permission for Read and Write your database.

提交回复
热议问题