How to handle to WiFi networks with same SSIDs?

Hello Everyone,

I have developed an iOS/iPadOS app in which I am checking if the device is connected to a particular WiFi network. I am able to check that using the CNCopyCurrentNetworkInfo dictionary and the value of the key "kCNNetworkInfoKeySSID". So, while doing that I was wondering what will happen if there is another WiFi network with same SSID. Is there another way to identify a WiFi network uniquely?

You may find this thread helpful, particularly this part:

iOS’s underlying Wi-Fi infrastructure assumes that all APs with the same SSID lead to the same network

Thanks Scott!

Taking a step back, why are you trying to identify the user’s Wi-Fi network in the first place. Most folks who ask questions like this have a specific purpose in mind. They might, for example, be building an app to set up an accessory, or to do indoor location, or whatever. If you can explain more context, we may be able to give you better answers.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How to handle to WiFi networks with same SSIDs?
 
 
Q