Hi there I have been using reachability class and everything works fine; except for ...
When the device is connected to wifi, and for whatever reason, the wifi router does not have internet connectivity the reachability class takes too long to say that there is no internet.
It works well(fast!) when there is no network/internet connectivity at all, for instance, if the wifi is off and the device does not have a 3G connection, reachability class returns success/failure almost instantly.
To re-iterate, connected to a wifi router, where there is no internet connectivity almost takes a full minute for reachability class to return a status.
Reachability *reachability=[Reachability reachabilityWithHostName:@"www.google.com"];
NetworkStatus remoteHostStatus = [reachability currentReachabilityStatus];
if(remoteHostStatus == NotReachable) {
............
My Code
Any suggestions?
Thanks