Hi I'm using aws sdk v2
for download I'm using ASWSS3Transfermanager and AWSS3TransferManagerDownloadRequest
problem scenario is as follows:
- user download file.
- file total size is 500MB but user download until 200MB and exit app.
- Check the result 200MB file remains well.
- relaunch app and start download same file, aws sdk start download since 0MB.
How can i download file since 200MB?? Is there a way to save AWSS3TransferManagerDownloadRequest??
please help me..
While the app relaunched, If you re-create the
AWSS3TransferManagerDownloadRequestagain (even with same parameters) and create a download task viaASWSS3TransferManager, your previously download task will be lost and new download will be initialized.To resume your previously download, there are two options:
resumeAllinstead of recreating a newAWSS3TransferManagerDownloadRequest:[AWSS3TransferManager resumeAll:nil] continueWithBlock:^id(AWSTask *task) { //process your task.result }];AWSS3TransferUtilityinstead ofAWSS3TransferManagerin latest AWS Mobile SDK for iOS. TheAWSS3TransferUtilitywill utilize Apple's Background Transfer feature so that the download task will continue even the app has been shutdown.