I\'ve searched SO for the answer to this question, and it\'s not really addressed, at least not to a point where I can make it work.
I was originally only checking f
Use this function to check if wifi is on
- (BOOL)isWifiOn {
Reachability* wifiReach = [Reachability reachabilityForLocalWiFi];
NetworkStatus netStatus = [wifiReach currentReachabilityStatus];
return (netStatus==ReachableViaWiFi);
}
similar code can be used to check reachabilityForInternetConnection but you have to check
(netStatus==ReachableViaWiFi)
if you care that it's over wifi AND
(netStatus==ReachableViaWWAN)
if you care that it's over WWAN