How do you solve the FireStorage User does not have permission to access this object error?

I have searched all the topics on this question.

What is the problem?

When I try to download the file from firedb it shows this


This is a test app on which I am trying it even in the main app it dosent work
image

Blocks

Aia
test_firestorage.aia (3.2 KB)

Thanks in advance,

Shouldn’t it be https instead for gs in your link

Edit: opps, just ignore me

Did you add/changed any permission(read or write)/rules in fire storage ??

Can you share us?

Yes,
here are the rules.
image
Code

rules_version = '2';
service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read;
      allow write;
    }
  }
}

You are trying to download to the root folder of the internal storage… This is not possible anymore.
Use shared storage like /Download
See also Some basics on Android storage system

Taifun

Hi, I have the same problem but only when I use the app in Companion. If I export the app in apk and I install the app it works. How could I use it in Companion?

If you really have exact the same problem then read this, else elaborate and show your relevant blocks

Taifun