Detect if device is connected to Wifi


I am developing an app for mobile and need to be able to tell if the device is connected to the internet via WIFI or via 3G. I have already managed to do so for the android version, using a pulgin that exposes native calls, but I can’t seem to find any solution for iOS.
Does somebody have any suggestions or plugins that can help me solve this issue?

Thanks in advance,

Can you try this approach out ?

check this condition its working for me

//your are Connected in Network

void Start()
string url = “”;
WWWForm form = new WWWForm();
WWW www = new WWW(url);

if (www.error == null)
     //means wifi or mobile data is on
    //do whatever you want here  like suppose
     Application.LoadLevel("login scene");
    //means wifi or mobile data is off,
    //now do whatever you want to do.