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

Progress event doesn't occurs on Android #634

Open nikesh8 opened 3 years ago

nikesh8 commented 3 years ago

Progress event not getting for Andriod applications. Please refer following code snippet which I have used in my project.

RNFetchBlob.config({fileCache: true,
addAndroidDownloads: {
   useDownloadManager: true,
   notification: false,
   path: filePath,
   description: 'AUDIO FILE',
}})
.fetch('GET', URL, {})
.progress((received, total) => { console.log('Progress'); })
.then((res)=> {});

Project contains:

"react": "16.11.0",
"react-native": "0.62.2",
"rn-fetch-blob": "0.12.0",

For iOS, it works fine and properly but while I am trying with iOS it won't work as expected and If I am removing addAndroidDownloads this object and just add path and fileCache in config app will getting crashed.

Gitesh-Narula commented 3 years ago

Yes, happening with me too.

chiefchief commented 3 years ago

same issue

shubhang237 commented 3 years ago

same issue