itinance / itinance/react-native-fs
readTimeout does not work on iOS (even on background disabled)
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
react-native: 0.69
react-native-fs: 2.20.0
issue OS: iOS
Tested on iPad 6th gen/emulator
I've tried numerous tests: removed wifi, denied connection via Network Link Conditioner, but can't seem to trigger an error in the catch() case when connection goes down and the process never ends on iOS.
(On Android it works perfectly)
I've read that by disabling props
**"background:false"**
it should work on iOS, It still does not work on the latest version. (v.2.20.0)
Have I forgotten something?
Here is my configuration:
```
RNFS.downloadFile({
fromUrl,
toFile: destination + filename,
background: false,
connectionTimeout: 2000,
readTimeout: 2000,
resumable: () => {
return false
},
progress: (res) => {
let progressPercent = (res.bytesWritten / res.contentLength) * 100; // to calculate in percentage
console.log("\n\nprogress===", progressPercent)
}
})
```
Thanks for your response! :)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.