WWDC icon indicating copy to clipboard operation
WWDC copied to clipboard

Download Failure Recovery

Open mediter opened this issue 6 years ago • 5 comments

Currently:

  1. Sometimes download failures are silent, meaning that they do not invoke alerts.
  2. 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 avatar Mar 24 '19 14:03 mediter

@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.

allenhumphreys avatar Mar 24 '19 14:03 allenhumphreys

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.

mediter avatar Mar 25 '19 02:03 mediter

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.

allenhumphreys avatar Mar 25 '19 02:03 allenhumphreys

I met some server error about downloadURL sometimes

lizhaojie001 avatar Mar 25 '19 02:03 lizhaojie001

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.

mediter avatar Mar 25 '19 03:03 mediter