This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Unable to get the progress callback with Download Manager options in Android #272
Open
Description
I am trying to use download manager options in FetchBlob. But the Progress not works on download manger request.
RNFetchBlob.config({
notification: true,
path: 'downloads/media.mp4',
indicator: true,
overwrite: true,
addAndroidDownloads: {
path: RNFetchBlob.fs.dirs.SDCardDir +'/downloads/media.mp4',
useDownloadManager: true,
notification: true,
overwrite: true,
description: 'downloading content...',
mime: 'video/mp4',
mediaScannable: false
}
})
.fetch('GET', url)
.progress(received, total) {
console.log('progress', received / total)
}