mirror of
https://gitee.com/shuto-github/cordova-plugin-network-information.git
synced 2026-05-29 00:00:04 +08:00
CB-12751: (ios) Fix connection type when airplane mode is on
This closes #54
This commit is contained in:
committed by
Julio César
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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user