Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS background download stops on app close #29

Open
rinku-k opened this issue Aug 17, 2016 · 2 comments
Open

iOS background download stops on app close #29

rinku-k opened this issue Aug 17, 2016 · 2 comments

Comments

@rinku-k
Copy link

rinku-k commented Aug 17, 2016

When app goes to background, the content is still downloading. but when the app is closed in middle of download, the download also stops.

Is that bug in iOS or I am missing something?

@rinku-k rinku-k changed the title iOS download stops on app close iOS background download stops when app closes Aug 17, 2016
@rinku-k rinku-k changed the title iOS background download stops when app closes iOS background download stops on app close Aug 17, 2016
@iwarner
Copy link

iwarner commented Sep 14, 2016

If the App is closed then there is no way that any app related code can run - so yes all actions would terminate. Unfortunately there is no AppClose event to listen to - only Pause
https://cordova.apache.org/docs/en/latest/cordova/events/events.html

@rinku-k
Copy link
Author

rinku-k commented Sep 26, 2016

But in Android, we can hand over download to default download service after which the download will not stop even after closing the app. And it does work on Android. But similar thing does not work in iOS.

In this plugin it is mentioned in quirks that "If a download operation was completed when the application was closed, onSuccess callback is called right after the first startAsync() is called for the same uri, as if the file has been downloaded immediatly."

But in my case, the download is paused when app is in background and resumes only in when app is active. Hence, the download will never be completed in background when app is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants