I have an application that uses Apple's reachability code. When I exit the application, turn on airplane mode, return to the application, I correctly receive a message saying that there is no connection. If I return, turn off the flight mode and return to the application, I ALWAYS receive a message that there is no connection. Specific problem code:
NetworkStatus status = kNotReachable; if (SCNetworkReachabilityGetFlags(reachabilityRef, &flags)) { status = [self networkStatusForFlags: flags]; return status; }
I get inside the if statement, and the flags end with 0 ( kSCNetworkReachabilityFlagsTransientConnection ). What exactly does this mean? Has anyone experienced this and does anyone know a workaround or fix? Played with him for hours ...
source share