In my project I am using Reachability class provided by Apple. When there is no internet connection, I am displaying an alert message. Everything is working fine, when I tes
You have to check all the NetworkStatus and Cross Check the device Wifi Connection status again
Example:
// to check if, wifi connected properly in current device.
- (BOOL)networkCheck {
Reachability *wifiReach = [Reachability reachabilityForInternetConnection];
NetworkStatus netStatus = [wifiReach currentReachabilityStatus];
switch (netStatus)
{
case NotReachable:
{
NSLog(@"NETWORKCHECK: Not Connected");
return NO;
break;
}
case ReachableViaWWAN:
{
NSLog(@"NETWORKCHECK: Connected Via WWAN");
return NO;
break;
}
case ReachableViaWiFi:
{
NSLog(@"NETWORKCHECK: Connected Via WiFi");
return YES;
break;
}
}
return false;
}