Describe the solution you'd like
An alternative to TransferNetworkLossHandler that would be easy to integrate with an Android application and would not use deprecated functionalities.
Describe alternatives you've considered
Android source suggests these approaches:
* @deprecated apps should use the more versatile {@link #requestNetwork},
* {@link #registerNetworkCallback} or {@link #registerDefaultNetworkCallback}
* functions instead for faster and more detailed updates about the network
* changes they care about.
Additional context
I have not seen any issue that would track this case. Feel free to close if this is a duplicate.
val transferNetworkLossHandler = TransferNetworkLossHandler.getInstance(context)
val connectivityActionIntentFilter = IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION)
context.registerReceiver(transferNetworkLossHandler, connectivityActionIntentFilter)
We recommend upgrading to Amplify 2.0 where we re-architected the storage plugin implementation to use the workmanager library which uses the latest api to manage network changes.
Which AWS Services is the feature request for?
aws-android-sdk-s3
Is your feature request related to a problem? Please describe. As of version
2.23.0
TransferNetworkLossHandler
is expectingConnectivityManager.CONNECTIVITY_ACTION
intent which is deprecated since API 28Describe the solution you'd like An alternative to
TransferNetworkLossHandler
that would be easy to integrate with an Android application and would not use deprecated functionalities.Describe alternatives you've considered Android source suggests these approaches:
Additional context I have not seen any issue that would track this case. Feel free to close if this is a duplicate.