Feature/connectivity manager deprecations #697
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the usage of the ConnectivityManager API to resolve deprecation warnings related to the use of NetworkInfo and its methods, which have been replaced by NetworkCapabilities starting from Android 10 (API 29). The key updates include:
Issues
Resolved
Compatibility
Testing
Verified on devices running Android 10+ to ensure that NetworkCapabilities functions as expected.
Tested on older Android devices to ensure proper functionality using the legacy implementation.
Open Question
There remains an open question of whether it is better to completely remove the legacy NetworkInfo API code or keep it alongside the new implementation for backward compatibility. Input and suggestions are welcome on whether supporting older Android versions is still a priority for this codebase. Should we remove support for Android API 21 and move it up to API 23?