One of the new features in iOS 14 is the approximate location:
We develop & maintain a proprietary library to communicate with devices on the network. Our library uses direct communication via LAN when possible, but falls back to remote communication via a back-end when not on the user's LAN (with additional costs). It compares the current SSID with the SSID used at device set-up to determine whether local communication over LAN can be used, or the more expensive back-end should be used.
How can we detect whether the user is on his/her own network when (s)he has chosen approximate instead of precise location?
(Note that a boolean indicating whether the phone is on the user's home network would be fine; we're not interested in the specific SSID per se, if such a boolean was available - the SSID check is only a workaround)
We noticed that when a user selects approximate location instead of precise location CNCopyCurrentNetworkInfo("en0" as CFString) returns nil instead of the current SSID.Approximate location
A new setting lets you choose to share your approximate location, rather than your precise location, with an app.
We develop & maintain a proprietary library to communicate with devices on the network. Our library uses direct communication via LAN when possible, but falls back to remote communication via a back-end when not on the user's LAN (with additional costs). It compares the current SSID with the SSID used at device set-up to determine whether local communication over LAN can be used, or the more expensive back-end should be used.
How can we detect whether the user is on his/her own network when (s)he has chosen approximate instead of precise location?
(Note that a boolean indicating whether the phone is on the user's home network would be fine; we're not interested in the specific SSID per se, if such a boolean was available - the SSID check is only a workaround)