Download Failure Recovery
Currently:
- Sometimes download failures are silent, meaning that they do not invoke alerts.
- All the failed downloads are removed from the download manager automatically.
This is in contrast to how apps like Safari are handling these situations: the failed download would remain in the download queue with a resume button.
Judging by the fact that videos being downloaded prior to app relaunch would resume their previous process, the system does not remove the temp file associated with each download task, at least not immediately.
So it is not too far fetched to suggest that recently failed download could be resumed from the point of failure. Also, would u consider changing failed download notice from alert window to notifications, which would be less interruptive.
@mediter Are the failures you're referring to happening when the app is not running? Could you give a specific way to reproduce the failures?
Regarding using local notifications: That's an excellent suggestion, we could even do download completion notifications.
As an FYI, Safari manages persistence above and beyond what NSURLSession provides out of the box to keep track of certain things.
I am in Beijing, China. Local ISP China Unicom 50Mbps broadband
What did you mean by "when the app is not running"?
To reproduce the failure, maybe you can try the following: try to download at least 20 videos all at once.
What did you mean by "when the app is not running"?
The downloads continue to run when you quit the app since they are background downloads.
I met some server error about downloadURL sometimes
What did you mean by "when the app is not running"?
The downloads continue to run when you quit the app since they are background downloads.
It is when the app is running. I didn't know it has this feature.