fixed ios wifi part support. retry 7.
This commit is contained in:
1 parent
a7f090fcc6
commit
e97f17410b
4 files changed
+17
-3
No files matched your search
@@ -290,6 +290,7 @@ static NSString * const BluememeDeviceKeyDefaultsKey = @"bluememe_utils_device_k
|
||||
security = password.length == 0 ? @"open" : @"wpa2";
|
||||
}
|
||||
BOOL isOpen = [security isEqualToString:@"open"] || [security isEqualToString:@"none"];
|
||||
BOOL isWpa3 = [security containsString:@"wpa3"] || [security isEqualToString:@"sae"];
|
||||
BOOL isWep = [security isEqualToString:@"wep"] || [self boolFromDictionary:options key:@"isWep" defaultValue:NO];
|
||||
BOOL joinOnce = [self boolFromDictionary:options key:@"joinOnce" defaultValue:defaultJoinOnce];
|
||||
BOOL hiddenSsid = [self boolFromDictionary:options key:@"hiddenSsid" defaultValue:NO];
|
||||
@@ -299,6 +300,19 @@ static NSString * const BluememeDeviceKeyDefaultsKey = @"bluememe_utils_device_k
|
||||
return;
|
||||
}
|
||||
|
||||
if (isWpa3) {
|
||||
[self sendErrorForCommand:command
|
||||
code:@"UNSUPPORTED_WIFI_SECURITY"
|
||||
message:@"iOS NEHotspotConfiguration does not support WPA3 Personal via the app WiFi configuration API. Use WPA/WPA2 Personal with security \"wpa2\", or use a WiFi configuration profile/MDM flow."
|
||||
details:@{
|
||||
@"ssid": ssid,
|
||||
@"security": security,
|
||||
@"minimumIos": @"15.0",
|
||||
@"nativeApi": @"NEHotspotConfiguration"
|
||||
}];
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isOpen && password.length == 0) {
|
||||
[self sendErrorForCommand:command code:@"INVALID_WIFI_OPTIONS" message:@"password is required for secured WiFi networks."];
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user