Enhance network connection status in ReachabilityMonitor of Datastore #2738
Labels
datastore
DataStore category/plugins
feature-request
Request a new feature
improvement
Any improvement that's not a bug and not requesting new functionality
Before opening, please confirm:
Language and Async Model
Java, Kotlin, RxJava
Amplify Categories
DataStore
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
ReachabilityMonitor detect network connection but it doesn't check whether it is connect
Describe the feature request
The original commit dfb5b55#diff-8dd0015f3eddee483b38c9b008f9db975c9840c2709abbfca6a783f1b9baa8f4 adds ReachabilityMonitorImpl with a DefaultConnectivityProvider which indicates there is network available:
However, even when network is active, it may not connect to internet. Since sync operation in Datastore depends on ReachabilityMonitor to provide network status, it could lead to too many sync attempts when internet is not available but there is still active network.
Please kindly let me know if ReachabilityMonitor is lacking or serves a distinct purpose in Datastore. Possible enhancement I could think of:
Resources:
Initialization steps (if applicable)
No response
Code Snippet
// Put your code below this line.
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: