caarmen / network-monitor

A network monitor tool for Android that executes an http GET to google.com every x seconds and logs the results into a file.
74 stars 27 forks source link

Support NetworkCapabilities which gives access to Android internal Internet test result #130

Open ypid opened 4 years ago

ypid commented 4 years ago

Description:

I tested with the "isConnected" results in a network without Internet. It still says connected. So it is not possible to differentiate being connected to a network with or without working Internet access (without an active test in the app). Recent Android versions check for Internet internally and this can be accessed using the NetworkCapabilities API.

This can also be used to alert on like with the active checks of the app.

Environment: