Progress Not Working - Download (Android)
See original GitHub issueProject 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:
- Created 3 years ago
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
and when removing the
useDownloadManager
application crashes!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.