question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Progress Not Working - Download (Android)

See original GitHub issue

Project package versions: rn-fetch-blob: 0.12.0 React: 16.11.0 RN: 0.62.2

Tested on: iOS: 14 Android: 11

Download Progress (Android):

I have a strange issue in that progress doesn’t seem to be firing on Android for downloads. iOS works fine.

Download Usage:

const response = await RNFetchBlob.config({
    fileCache: true,
    path: targetPath,
    indicator: true,
    addAndroidDownloads: {
        useDownloadManager: true,
        notification: true,
        title: 'Download Complete',
        description: 'file description'
        mime,
        path: targetPath,
        mediaScannable: true,
    },
})
.fetch('GET', downloadURI)
.progress({ interval: 16 }, (written: number, total: number) => {
            //do something w/progress
});

I’ve done some digging around the java code but haven’t found anything yet. I’m happy to contribute on this and add a PR so if anyone else is experiencing this issue and has any info let me know - let’s try and get this sorted!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

3reactions
ZeeshanAhmadKhalilcommented, Sep 3, 2021

and when removing the useDownloadManager application crashes!

3reactions
scgoughcommented, Apr 21, 2021

I think in this/my case it is down to the fact I have useDownloadManager: true set. When using Download Manager no progress event fires at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Fix] Download Progress not Showing in Android Notification Bar
How to Fix Download Progress Not Showing Issue on Android Pie · First of all, go to Settings and search for 'Data Transfer...
Read more >
Download a file with Android, and showing the progress in a ...
For this I need a simple function that can download a file and show the current progress in a ProgressDialog . I know...
Read more >
How to restore game data & fix other errors in Google Play ...
How to restore game progress in Play Games · On your Android phone or tablet, open the Play Store app · Search for...
Read more >
Why is the download progress bar not showing when i ...
I have checked download manager, all the settings seem to be correct after reading a few other posts. I am on Android PIE...
Read more >
Download progress notification is not showing and file ... - Quora
Go to the settings and choose the application and then choose the application where you have problem then click on the enable notification...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found