Iam using c# for my application in unity.At some methods I need to check for   internet connection for that I am using Application.internetReachability == NetworkReachability.NotReachable this line of code working properly while i am running in unity editor but when I checked for mac build its not working properly.
public static bool CheckInternetConnectionAvailability()
{
    try
    {
        return !(Application.internetReachability == NetworkReachability.NotReachable);
    }
    catch(Exception ex)
    {
        LoggingManager.Error(ex);
        return true;
    }
}
When there is no internet is available it is returning true but it has to be true.Is there anything that iam doing wrong?
 
    