mzeeshanid / MZDownloadManager

This download manager uses NSURLSession api to download files. It can download multiple files at a time. It can download large files if app is in background. It can resume downloads if app was quit.
BSD 3-Clause "New" or "Revised" License
1.12k stars 238 forks source link

kill app and resume download #24

Closed andreabozza1984 closed 7 years ago

andreabozza1984 commented 7 years ago

Hello, i have this scenario (in example app):

mzeeshanid commented 7 years ago

Are you testing in a real device or in simulator?

Sent from Yahoo Mail on Android

On Fri, Oct 7, 2016 at 5:53 PM, andreabozza1984notifications@github.com wrote:
Hello, i have this scenario (in example app):

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

andreabozza1984 commented 7 years ago

device. ios 1.0.2 on iPhone 6 plus

vishnuag05 commented 7 years ago

same is happening with me , I am testing in real device.Please reply asap. @mzeeshanid

mzeeshanid commented 7 years ago

When user force quit the app, all on going tasks are invalidated by the Daemon. So if you want to start them without user interaction you have to traverse tasks array and resume it programmatically. This is not a bug, its expected behaviour.

iMuks commented 7 years ago

This is as per apple iOS nsurlsession background session configuration default.when user kill app while app is running in foreground then nsurlsession or os will kill the task .and when user launch app again, then nsurl background session invoke and resume the download task.