Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internet availability may not be being verified in project #656

Open
amazuerar opened this issue Aug 15, 2021 · 0 comments
Open

Internet availability may not be being verified in project #656

amazuerar opened this issue Aug 15, 2021 · 0 comments

Comments

@amazuerar
Copy link

Dear Developer!

My name is Alejandro Mazuera-Rozo, I am a PhD Student at Universidad de los Andes, and at Università della Svizzera italiana. I am part of a research on the usage of network libraries within android apps. As a result of this we identified that there is a missing validation of Internet availability within the project which is needed since some network operations are being performed in the application.

As you might know, a device may be connected to a network but may not have Internet connection. Therefore it is recommended for the app to identify whether the device is connected to a network having Internet connectivity before performing a network operation.

In order to address this issue we recommend you to:

  1. Obtain representation of the capabilities of an active network, they are typically obtained through NetworkCallback#onCapabilitiesChanged(Network, NetworkCapabilities) or ConnectivityManager#getNetworkCapabilities(Network)
  2. See: https://developer.android.com/reference/android/net/NetworkCapabilities
  3. See: https://developer.android.com/reference/android/net/NetworkCapabilities#NET_CAPABILITY_INTERNET
  4. See: https://developer.android.com/reference/android/net/NetworkCapabilities#NET_CAPABILITY_VALIDATED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant