diff --git a/src/ios/CDVConnection.m b/src/ios/CDVConnection.m index 3cfdc33..cbf4d69 100644 --- a/src/ios/CDVConnection.m +++ b/src/ios/CDVConnection.m @@ -52,8 +52,14 @@ return @"none"; case ReachableViaWWAN: - return @"cellular"; - + { + BOOL isConnectionRequired = [reachability connectionRequired]; + if (isConnectionRequired) { + return @"none"; + } else { + return @"cellular"; + } + } case ReachableViaWiFi: return @"wifi";