unity check quality of internet connection code example
Example: unity test network connection
if (Application.internetReachability == 0) //Not reachable at all
{
Debug.LogWarning("No internet connection");
}
if (Application.internetReachability == 1) //Reachable via Carrier data network
{
Debug.LogWarning("Connected to mobile carrier");
}
if (Application.internetReachability == 3) //Reachable via WiFi
{
Debug.LogWarning("Connected to WiFi");
}