'Is there any way to implement partial / continuous download from AWS S3 bucket?

According to AWS docs, preferred way to download files from S3 bucket is to use Amplify.Storage.downloadFile. (Or old one AWSS3TransferUtility)

It was mentioned in the "Cancel, Pause, Resume" section, that it uses NSURLSessionTask under the hood.

Question:

Is there any way to implement next scenario: Start downloading big file. In case of network error / app closing / user interrupting / any_other_reason, keep downloaded file part and continue later - during next session?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source