Skip to content
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
@sivakumar-cf

Description

@sivakumar-cf

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)
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions