3 ms·
Currently, the only way to access WiFi SSID is indeed from a low level API: CNCopySupportedInterfaces(), a C API for System Configuration. This is useful if an
by oflannabhra 7y ago
Currently, the only way to access WiFi SSID is indeed from a low level API: CNCopySupportedInterfaces(), a C API for System Configuration.
This is useful if an app needs to know whether the phone is currently using a local network or a cellular modem to connect to the Internet, or to connect to local devices. Unfortunately Apple does not provide a basic API that provides this information without the SSID. (Although in early iOS 13 betas, there was a WiFi framework that might have provided such information. It was removed from later betas, however).
For Bluetooth, apps do not have access to BSSID nor peripheral MAC addresses from advertisements and connections. CoreBluetooth provisions a separate identifier (that is rotated) to prevent apps from gleaning much tracking info outside of the user's consent.