-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support long running background uploads/downloads #1559
Comments
See Discussion : |
Hi, @nick3389, the AWSS3StoragePlugin in Amplify version 2 uses a background URLSession so that downloads can continue even when the application is in the background: Would you please let us know if this was what you were referring to? |
Hi @jcjimenez, Does this support uploads as well? |
Hi, @nick3389, Yes, this works for uploads also. However, there's one caveat: if the size of the file being uploading is larger than 5MB, then the upload will be split into separate [part] upload tasks. So, any tasks that are in progress when the app goes to the background will proceed, and if connectivity remains stable, will complete successfully. However, any subsequent [part] tasks will depend on the app coming back into the foreground so they can be started. In other words, imagine the file being uploaded is divided into 10 parts and the first 3 start immediately after the call to |
Hi @jcjimenez Thank you for the response. However, the 7 remaining tasks will be completed even if the app is in the background? Or does the app needs to be in the foreground again, complete the 3 tasks and then the rest 7 to start launching? |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Is your feature request related to a problem? Please describe.
The main scope is to support uploads mainly while the application is in the background. Currently this is not supported by Amplify SDK. You can read more about it in #638 .
Secondly, there is no support for setting up a
AWSServiceConfiguration
withAWSStaticCredentialsProvider
in Amplify.Describe the solution you'd like
A possible solution would be something like
AWSTransferUtility
that aws-ios-sdk has and supports background uploads. Also,AWSTransferUtility
can be setup with aAWSStaticCredentialsProvider
. However, the main issue here is the support of long running background uploads.Describe alternatives you've considered
No alternative with Amplify SDK. I still use the aws-ios-sdk.
Is the feature request related to any of the existing Amplify categories?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: