mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-04-28 06:30:11 +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:
|
case ReachableViaWiFi:
|
||||||
return @"wifi";
|
{
|
||||||
|
BOOL isConnectionRequired = [reachability connectionRequired];
|
||||||
|
if (isConnectionRequired) {
|
||||||
|
return @"none";
|
||||||
|
} else {
|
||||||
|
return @"wifi";
|
||||||
|
}
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return @"unknown";
|
return @"unknown";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user