aws-amplify / amplify-android

The fastest and easiest way to use AWS from your Android app.
https://docs.amplify.aws/lib/q/platform/android/
Apache License 2.0
247 stars 117 forks source link

S3 Transfer network option (wifi/mobile/any) #2303

Open tylerjroach opened 1 year ago

tylerjroach commented 1 year ago

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
martinxsliu commented 1 week ago

Hi team, what is the status of this feature request? The linked discussion is no longer visible.

We are looking to upload large (1GB+) video files to S3 and it is a deal breaker to not have the option to transfer when on Wifi only. The old AWS Android SDK supports this feature and it is unfortunate that this package does not, because it prevents us from using this package despite all the other nice features it has.

mattcreaser commented 2 days ago

Hi @martinxsliu. This feature has not yet been prioritized. I'll highlight this to the team to see if we can get some traction. For the time being you should continue to use the AWS SDK for Android.