As noted in https://developer.apple.com/documentation/systemconfiguration/1614126-cncopycurrentnetworkinfo , we cannot get the SSID or BSSID in iOS 13 if the app doesn't have location permission. I understand that this is for privacy reasons, as the Wi-Fi SSID can be used to obtain location.
However, we just want to use the SSID to identify whether a network is the same or different as a previous network, so we can cache certain resolved IP address and proxy information which might be specific to each Wi-Fi network. For this purpose, we don't actually need the SSID itself; we just need some identifier that will be the same when it's on the same Wi-Fi network, and different for different networks. Is there a way to get some kind of an "anonymized network identifier" that will be consistent for networks with the same SSID for our app on a particular device, but which doesn't reveal the actual SSID so it doesn't affect the user's location privacy?