Skip to content
Back

Using the React Native SDK's getFileDownload in an Android app always returns an empty object.

  • 0
  • Android
  • React Native
cy
8 Jul, 2025, 04:05

const result = await storage.getFileDownload('bucketId', 'fileId'); console.log(result, typeof result);

[] object

TL;DR
Developers are facing issues with React Native SDK's getFileDownload in an Android app, as it always returns an empty object. They are unsure if the download is happening or not as no browser is involved and the logic is triggered by a button click in the app.
Axistro
8 Jul, 2025, 04:34

What is happening when you are calling this?

cy
8 Jul, 2025, 04:34

nothing

Axistro
8 Jul, 2025, 04:35

So, no browser download starts?

cy
8 Jul, 2025, 04:36

The logic is triggered by a button click in the Android app, without involving a browser.

Axistro
8 Jul, 2025, 04:37

The browser is the one that downloads it.

Axistro
8 Jul, 2025, 04:38

The thing I want to know is is it downloading it or no download is happening?

cy
8 Jul, 2025, 04:41

no download

cy
8 Jul, 2025, 04:42

I switched to getFileView, but still get an empty object.

Steven
8 Jul, 2025, 04:44

I'm pretty sure both of these return an array buffer

Steven
8 Jul, 2025, 04:44

In version 0.10.0

Steven
8 Jul, 2025, 04:45

Any way you can check network logs?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more