Android Question Firebase Storage: User does not have permission to access this object

hasanaydin52

Member
Licensed User
I try to test Erel storage example.
"Download Public" gave error.
(StorageException) com.google.firebase.storage.StorageException: User does not have permission to access this object.

I read all directives but i cant resolve.

Sign with google is ok. User Name appears.

Storage Rules are;
service firebase.storage {
match /b/b4a-test.appspot.com/o {

match /public/{allPaths=**} {
allow read, write; }

match /auth/{allPaths=**}{
allow read,write; }


match /user/{allPaths=**}{
allow read,write; }
}
I give full authority.
I wrote SHA1 signkey to Firebase.
Upload a short text file (out.txt) to public folder.
B4X:
Sub btnDownloadPublic_Click
    'You need to first upload a file from Firebase console.
    Starter.storage.DownloadFile("/public/out.txt", File.DirInternalCache, "out.txt")  
End Sub
 
Last edited:
Top