Found this in the <NetworkExtension/NEHotspotNetwork.h> header:
@method fetchCurrentWithCompletionHandler:completionHandler:
@discussion This method returns SSID and BSSID of the current Wi-Fi network when the requesting application meets one of following 4 requirements:
1. application is using CoreLocation API and has user's authorization to access precise location.
2. application has used NEHotspotConfiguration API to configure the current Wi-Fi network.
3. application has active VPN configurations installed.
4. application has active NEDNSSettingsManager configuration installed.
- - -
So be it... But you'd think there'd be a simpler way just to get the SSID string!
Topic:
App & System Services
SubTopic:
Networking
Tags: