Open daniyalrathore14 opened 1 day ago
it seems to be you got as same as my problem. when downloading, it got error but not send error event to JS side.
could you test this MR? https://github.com/kesha-antonov/react-native-background-downloader/pull/32
but in my case the progress and begin method is not even working once
but in my case the progress and begin method is not even working once
@kesha-antonov In Android: im getting the issue that im unable to get the progress of download.
download({ id: jobId, url: fileUrl, destination: saveToPath, metadata: {}, }) .begin(({ expectedBytes, headers }) => { console.log(
Starting download of ${expectedBytes} bytes
, headers); }) .progress(({ bytesDownloaded, bytesTotal }) => { console.log(Download progress: ${bytesDownloaded}% ${bytesTotal}
);