aws-amplify / aws-amplify/amplify-android

S3 Transfer network option (wifi/mobile/any)

Open
#2,303 2 comments 1 reaction 0 assignees View on GitHub
feature-parity feature-request storage
Dominant language
Java
Stars
287
Forks
132
Avg merge
2d 2h
Merged PRs (30d)
45

Description

### Discussed in https://github.com/aws-amplify/amplify-android/discussions/2298

Originally posted by **waertf** February 20, 2023
[TransferNetworkConnectionType](https://docs.amplify.aws/sdk/storage/transfer-utility/q/platform/android/#transfernetworkconnectiontype)
The TransferNetworkConnectionType option allows you to restrict the type of network connection (WiFi / Mobile / ANY) over which the data can be transferred to Amazon S3.

TransferUtilityOptions options = new TransferUtilityOptions(10, TransferNetworkConnectionType.WIFI);

TransferUtility transferUtility = TransferUtility.builder()
// Pass-in S3Client, Context, AWSConfiguration/DefaultBucket Name
.transferUtilityOptions(options)
.build();
copy
By specifying TransferNetworkConnectionType.WIFI , data transfers to and from S3 will only happen when the device is on a WiFi connection

Contributor guide

Open the contributing guide

Research direction

Read the linked discussion and the TransferNetworkConnectionType documentation first. Trace TransferUtilityOptions into the TransferUtility.builder() entry point and determine how the Android transfer path should honor WiFi, mobile, and ANY selections. Done means the requested network restriction behavior is clearly defined and verified for each option.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cloud, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.