Hey,
Our "NSURLSessionDownloadTask" could fail under some circumstances. If our app is in foreground, then
(void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(nullable NSError *)error
will be called, we have an opportunity to retry manually.
But, if the app is in backend, we're not able to receive the callback until user set it to foreground.
Whether it's possible to retry immediately when the task fails even app is in backend? e.g. 1: Not sure we're able to set "NSURLSessionDownloadTask" automatically retry when it fails 2: Are we able to receive the failure callback immediately ( delay a couple of seconds/minutes are also acceptable ) even the app is in backend, and retry manually?
Thanks