Is there a simple way to check if wifi is available? I need to download some textures and it would be not nice for users if this would happened over their 3G network every time someone lunches the game.
A quick look through the scripting manual gives :
" iPhoneNetworkReachability "
Bang this into the search box and click the result gives 3 options:
NotReachable : Network is not reachable
ReachableViaCarrierDataNetwork : Network is reachable via carrier data network
ReachableViaWiFiNetwork : Network is reachable via WiFi network
Not sure how this works exactly, might need to have a specific address to connect to, or attempt to connect to, from which these values (that return a bool?) are assigned? Anyone :?:
Looks like iPhoneSettings.internetReachability returns one of these values. So, for example, the OP could say “if (iPhoneSettings.internetReachability == iPhoneNetworkReachability.ReachableViaWiFiNetwork) DownloadTextures();”
Thanks !!!
This is exactly what I was looking for!
Hello All, I was wondering if anyone had a way to detect if the device is connected to just a wifi network. According the variable it seems like it is detecting for network. I will need a way to see if I can detect just wifi not internet. Thanks in advanced.