User does not have permission to access this object . Firebase storage android

后端 未结 10 1693
甜味超标
甜味超标 2020-12-02 20:12

I am new to firebase storage. Just so I could learn it, I made a simple app that has a button and an ImageView. When I click on the button, an image (from

10条回答
  •  情深已故
    2020-12-02 20:44

    Go to storage -> Rules tab

    add this

    // Anyone can read or write to the bucket, even non-users of your app.
    // Because it is shared with Google App Engine, this will also make
    // files uploaded via GAE public.
    service firebase.storage {
      match /b/{bucket}/o {
        match /{allPaths=**} {
          allow read, write;
        }
      }
    }
    

提交回复
热议问题