Bring back functionalaty to get BSSID and SSID on iOS
| Originator: | leonvtippelskirch | ||
| Number: | rdar://21983334 | Date Originated: | 24.7.2015 |
| Status: | Duplicate of 22081099 | Resolved: | |
| Product: | iOS SDK | Product Version: | 9.0 (13A4305g) |
| Classification: | Enhancement | Reproducible: | Not Applicable |
Developing applications connecting to specific Hardware there is the need to display the current SSID and save the current BSSID to recognize if the iPhone is in the WiFi Network as before.
Previously the following code got the information needed:
- (id)fetchSSIDInfo
{
NSArray *ifs = (id)CNCopySupportedInterfaces();
NSLog(@"%s: Supported interfaces: %@", __func__, ifs);
id info = nil;
for (NSString *ifnam in ifs) {
info = (id)CNCopyCurrentNetworkInfo((CFStringRef)ifnam);
NSLog(@"%s: %@ => %@", __func__, ifnam, info);
if (info && [info count]) {
break;
}
[info release];
}
[ifs release];
return [info autorelease];
}
iOS 9b4 removed the whole functionality. Many apps connecting to vendor specific hardware do need this information.
Please add either new API to get BSSID and SSID or reevaluate your decision to deprecate the old API.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!