Detect if device is connected to Wifi

Hello,

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,
ConfusedExpert

Can you try this approach out ?
http://stackoverflow.com/questions/24351155/unity-check-internet-connection-availability

check this condition its working for me

if(Network.player.ipAddress!=“0.0.0.0”){
//your are Connected in Network
}

@ConfusedExpert
void Start()
{
string url = “http://google.com”;
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");
 }
 else
 {
    //means wifi or mobile data is off,
    //now do whatever you want to do. 
 }

}