Posts

Post not yet marked as solved
4 Replies
715 Views
In our iOS application there are many places where we need to fetch current connected ssid and we are fetching it from CNCopySupportedInterfaces.We are observing an issue where CNCopySupportedInterfaces is taking 30 to 40 seconds to fetch ssid name which is therefore blocking the main thread and leading to make our application crash. We did not find any issues calling this api CNCopySupportedInterfaces on main thread specified in any of the apple documents. Please note we are experiencing this issue only in a particular network environment. Code snippet : (NSString *)getwifiName{ NSString *wifiStr = nil; CFArrayRef arrayRef = CNCopySupportedInterfaces(); NSArray *interfaces = (_bridge NSArray *)arrayRef; if (interfaces) { for (NSString *interfaceName in interfaces) { CFDictionaryRef dictRef = CNCopyCurrentNetworkInfo((CFStringRef)interfaceName); if (dictRef != NULL) { NSDictionary *networkInfo = (bridge NSDictionary *)dictRef; wifiStr = [NSString stringWithFormat:@"%@",[networkInfo objectForKey:@"SSID"]]; CFRelease(dictRef); } } CFRelease(arrayRef); } if(wifiStr == nil) { wifiStr = [NSString stringWithFormat:NSLocalizedString(@"MobileDeviceWIFINotEnable",nil)]; } NSLog(@"Connected WifiStr - %@",wifiStr); return wifiStr; }
Posted
by Rupali01.
Last updated
.
Post not yet marked as solved
3 Replies
373 Views
Currently with our iOS application we are not able to auto connect to networks with wpa3 encryption whenever trying to do with NEHotspotConfigurationManager , it is eventually failing.Tried with iPhone x Pro with iOS SDK 14.Tried connecting with QR code also but was unable to. PS : However we are able to connect through wifi settings manually.
Posted
by Rupali01.
Last updated
.
Post not yet marked as solved
1 Replies
270 Views
Currently with our iOS application we are not able to auto connect to networks with wpa3 encryption whenever trying to do with NEHotspotConfigurationManager is failing.Tried with iPhone X with iOS SDK 14.Tried connecting with QR code also but was unable to.
Posted
by Rupali01.
Last updated
.
Post not yet marked as solved
3 Replies
471 Views
In our application we are triggering auto connection to a network through NEHotspotConfiguration , even though after auto connect success and without any error we are getting pop up saying Unable to join the network "ssid" .What can be the reason for this behaviour?
Posted
by Rupali01.
Last updated
.