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

Edited by Mallika_P: missed one condition

1
Contributor
0
Replies
10
Views
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.