except that the signal strength returned is always zero. I have whenInUseAuthorization from CLLocationManager and both the "Access WiFi Information" and "Hotspot Configuration" entitlements are present. Any ideas?
Yes, when NEHotspotNetwork.fetchCurrent
is used the signal strength property will not be populated, at least on iOS 14. I have not heard of any changes for this in iOS 15 either, but I have not tested this API on iOS 15. Notice, the header documentation for this API say, "NEHotspotNetwork object contains only valid SSID and BSSID values, when the block is passed non-nil object." The signal strength addition to NEHotspotNetwork
in the completion block of fetchCurrent
would be an Enhancement Request.
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com