mirror of
https://gitee.com/shuto-github/cordova-plugin-network-information.git
synced 2026-04-22 00:00:02 +08:00
CB-6342 - iOS reports a cellular connection even when in Airplane mode
This commit is contained in:
committed by
Shazron Abdullah
parent
d2cd2fbb63
commit
6831f06685
@@ -52,8 +52,14 @@
|
|||||||
return @"none";
|
return @"none";
|
||||||
|
|
||||||
case ReachableViaWWAN:
|
case ReachableViaWWAN:
|
||||||
return @"cellular";
|
{
|
||||||
|
BOOL isConnectionRequired = [reachability connectionRequired];
|
||||||
|
if (isConnectionRequired) {
|
||||||
|
return @"none";
|
||||||
|
} else {
|
||||||
|
return @"cellular";
|
||||||
|
}
|
||||||
|
}
|
||||||
case ReachableViaWiFi:
|
case ReachableViaWiFi:
|
||||||
return @"wifi";
|
return @"wifi";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user