cordova-plugin-file-transfer icon indicating copy to clipboard operation
cordova-plugin-file-transfer copied to clipboard

There's any way to resume downloads?

Open theer1k opened this issue 6 years ago • 7 comments

I need in my application to stop and resume downloads, we know in the plugin the OnProgress loaded but if download fails i want to download the loaded - total, anyone figured out how to get this done?

Looking up, i found this https://github.com/vaenow/cordova-plugin-pause-resume-download-demo but it's only limited for Android and iOS and i prefer if it's possible to use only this File Transfer plugin.

theer1k avatar Nov 22 '18 16:11 theer1k

There are a couple background download plugins available, can send the links later today.

On Thu, Nov 22, 2018, 11:38 AM Erik Cunha [email protected] wrote:

I need in my application to stop and resume downloads, we know in the plugin the OnProgress loaded but if download fails i want to download the loaded - total, anyone figured out how to get this done?

Looking up, i found this https://github.com/vaenow/cordova-plugin-pause-resume-download-demo but it's only limited for Android and iOS and i prefer if it's possible to use only this File Transfer plugin.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/apache/cordova-plugin-file-transfer/issues/213, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfNUACjgloO_bYqzaXaCGadZSVOXc5jks5uxtMWgaJpZM4YvqSV .

brodycj avatar Nov 22 '18 16:11 brodycj

@brodybits i would appreciate it, but this background download plugins can handle in case of failure? I mean, resume/start from failure?

theer1k avatar Nov 22 '18 16:11 theer1k

Did you find any @brodybits ?

theer1k avatar Nov 24 '18 20:11 theer1k

Thanks for helping @brodybits! I think this can get the job done.

theer1k avatar Nov 25 '18 10:11 theer1k

@brodybits https://github.com/sgrebnov/cordova-plugin-background-download/issues/65 i don't think so. Still looking for an answer

theer1k avatar Dec 26 '18 22:12 theer1k

Hi, any solution to this? My scenario is when the user puts the app to the background (Locking the device or minimising the app) during download, IOS suspends the application, I do not receive any errors or callback events. When I open the app again I have no idea what happened with the download as non of the events is being fired. I need to resume the download or at least know that it failed or did not finish.

BrendanThysse avatar May 13 '20 14:05 BrendanThysse