joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.81k stars 772 forks source link

Hello I can not get data from internal storage in android 10. other android versions are working fine. #681

Open aftabaminzoobiapps opened 3 years ago

aftabaminzoobiapps commented 3 years ago

Hi ! Thank you for reporting an issue, but we would like to remind you, we have a trouble shooting page in our wiki. You may want to take a look on that page or find issues tagged "trouble shooting" :p

ebeliejinfren commented 3 years ago

Same Issue, Download (not android downloader) not Working in android v10.0.0 (in other version work correctly) download not start and not show any error message just app crush

aftabaminzoobiapps commented 3 years ago

I have got a solution. actually, Android Download is not allowed to read or write in other apps directory. you can simply ignore the android downloader for an API above then or equal to 29.
let options = { dir = RNFetchBlob.fs.dirs.SDCardDir, fileCache: true, path:${dir}/VideoDownloader/KKKK/FFFFFMath.floor(date.getTime() date.getSeconds() / 2).mp4, }

iasreact1 commented 1 year ago

@aftabaminzoobiapps How to use download at projectfolder/android/app/src/main/assets using fs.DocumentDir + "???"