Skip to content

Android Setup

The plugin declares the required Android permissions automatically:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  • Connection status uses ConnectivityManager and NetworkCapabilities.
  • URL and download tests use native HttpURLConnection.
  • TCP port tests use native sockets.
  • WebSocket tests perform a native WebSocket upgrade handshake over TCP or TLS.

Android can expose whether the active network is internet validated or marked as captive portal capable. These flags help explain cases where the device is connected to Wi-Fi but the app cannot reach your backend.

Prefer https:// and wss:// targets. If you need to diagnose a plain http:// or ws:// endpoint on Android 9 or later, the host app may need a Network Security Config or android:usesCleartextTraffic="true" for that diagnostic target.