I am trying hard to get the authentic internet connectivity status. I have used Apple\'s Reachability but it\'s only giving me the status of wifi connectivity i.e. not covering
See Jordan's Answer. There is a stupid bug in Apple's official Reachability.m. The type for returnValue should be "NetworkStatus" instead of "BOOL":
- (NetworkStatus)networkStatusForFlags:(SCNetworkReachabilityFlags)flags
{
...
NetworkStatus returnValue = NotReachable;
...
}
Otherwise, you end up with the following terrible consequences:
Can't believe Apple never bothered to fix this.
(P.S. New to stack overflow and have no reps to upvote Jordan)