1.11M Members

Internet status in ios using url

 
0
 

Hi.,

I'm using cordova2.9.0 in my ios app, from CDVReachability.m file, i tried to check internet status with url for my ipad simulator as well device. But it shows status wrongly [My network is connected through sonic firewall login]. Any help?

CDVReachability *isReachable = [CDVReachability reachabilityWithAddress:@"http://www.google.com/"];
//    CDVReachability *isReachable = [CDVReachability reachabilityForInternetConnection];

    int networkStatus = [isReachable currentReachabilityStatus];
    NSLog(@"************************   : %i" , networkStatus);

Thanks

You
Post:
Start New Discussion
Tags Related to this Article