Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fileCache with addAndroidDownloads causes a crash #390

Open
Tencryn opened this issue Nov 25, 2024 · 0 comments
Open

fileCache with addAndroidDownloads causes a crash #390

Tencryn opened this issue Nov 25, 2024 · 0 comments

Comments

@Tencryn
Copy link

Tencryn commented Nov 25, 2024

I've been trying to download a HTML file and save it in the downloads directory, without it being in some abritrary folder belonging to the app.

Upon playing around and getting a giant headache, I decided to try out using the fileCache option. I had this:

ReactNativeBlobUtil.config({
    fileCache: true,
    addAndroidDownloads: {}
})

Upon attempting to download the file, the app immediately crashes with no error. I noticed that after removing addAndroidDownloads, it would download correctly to the cache. I assume this is a bug, as there is a provided example with these two options.

react@18.3.1
react-native@0.76.3
react-native-blob-util@0.19.11

Using a physical device with Android 12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant