Since we know , As per latest update to Apple's privacy policy Starting with iOS 13, the CNCopyCurrentNetworkInfo API will no longer return valid Wi-Fi SSID and BSSID information . As per apple's guidelines the app must meet at least one of the criteria mentioned below to fetch the network information.
- The app uses Core Location, and has the user’s authorization to use location information.
- The app uses the NEHotspotConfigurationAPI to configure the current Wi-Fi network.
- The app has active VPN configurations installed.
In our app we used core location access for fetching wi-fi ssid. It works most of the times if the location access is given by user but in some devices we are seeing an issue that even though location access is given by user, we are still not able to fetch wifi-ssid and once we restart the phone everything starts working then. Seems like a possible bug with iOS 13. Has anyone else faced same issue ?
In order to verify that there is no problem with my code, I checked in other apps like Share it, SweetSpots which also uses Core Location to fetch Wi-fi ssid, they were also not able to fetch wifi ssid until phone is restarted. Something is fishy with iOS 13 which gets cleaned when phone is rebooted.