mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-01-18 21:52:48 +08:00
CB-12751: (ios) Fix connection type when airplane mode is on
This closes #54
This commit is contained in:
parent
7f5d03e699
commit
2fd3c1cc43
@ -88,8 +88,14 @@
|
||||
}
|
||||
}
|
||||
case ReachableViaWiFi:
|
||||
return @"wifi";
|
||||
|
||||
{
|
||||
BOOL isConnectionRequired = [reachability connectionRequired];
|
||||
if (isConnectionRequired) {
|
||||
return @"none";
|
||||
} else {
|
||||
return @"wifi";
|
||||
}
|
||||
}
|
||||
default:
|
||||
return @"unknown";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user