-
Notifications
You must be signed in to change notification settings - Fork 549
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
Android -TransferUtility to upload file on wifi data only #365
Comments
Hi @aditimodi04, Thanks for reporting to us. Currently, the SDK doesn't allow to specify the network configuration (wifi/cellular). But you could use the network connectivity APIs from Android OS to check for the network connection, pause/resume transfers accordingly. We will take it as a feature request. |
Pull Request #230 addresses this issue. We will update this thread when the pull request is merged. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems. |
@kvasukib Is this feature available now? |
@kvasukib Is this feature still not available yet? |
@vishal-rai and @tntkhang Sorry for the delayed reply. The PR #230 that addresses this feature request has not been resolved from conflicts. Currently, we have |
@aditimodi04 @vishal-rai @tntkhang This feature has been implemented and released in You can use Default / Any Network: TransferUtilityOptions transferUtilityOptions = new TransferUtilityOptions(threadPoolSize, TransferNetworkConnectionType.ANY); WiFi only: TransferUtilityOptions transferUtilityOptions = new TransferUtilityOptions(threadPoolSize, TransferNetworkConnectionType.WIFI); Mobile only: TransferUtilityOptions transferUtilityOptions = new TransferUtilityOptions(threadPoolSize, TransferNetworkConnectionType.MOBILE); AmazonS3Client s3Client = new AmazonS3Client(AWSMobileClient.getInstance());
s3Client.setRegion(Region.getRegion(Regions.US_EAST_1));
TransferUtilityOptions transferUtilityOptions = new TransferUtilityOptions(threadPoolSize, TransferNetworkConnectionType.WIFI);
TransferUtility transferUtility =
TransferUtility.builder()
.context(getApplicationContext())
.awsConfiguration(AWSMobileClient.getInstance().getConfiguration())
.s3Client(s3Client)
.transferUtilityOptions(transferUtilityOptions); // Only WiFi
.build(); Please let me know if you have feedback. |
This feature has been released. Please try it out and open a new issue if you are observing and issues or have questions. |
How to manage amazon s3 file uploading on wifi data only. Don't want to upload on Mobile data
The text was updated successfully, but these errors were encountered: