apache / cordova-plugin-file-transfer

Apache Cordova File Transfer Plugin
https://cordova.apache.org/
Apache License 2.0
596 stars 888 forks source link

There's any way to resume downloads? #213

Open theer1k opened 5 years ago

theer1k commented 5 years ago

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.

brodybits commented 5 years ago

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

On Thu, Nov 22, 2018, 11:38 AM Erik Cunha notifications@github.com 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 .

theer1k commented 5 years ago

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

theer1k commented 5 years ago

Did you find any @brodybits ?

brodybits commented 5 years ago

https://github.com/sgrebnov/cordova-plugin-background-download

theer1k commented 5 years ago

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

theer1k commented 5 years ago

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

BrendanThysse commented 4 years ago

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.