List all available WiFi networks and auto connect to a specific one

Hi,

I'm working on an app where user frequently connects to the camera via WiFi.

Current implementation navigates user to the settings screen on the phone where he/she needs to connect manually to the camera WiFi and also disconnect manually when the users WiFi is needed. I'm looking to avoid this implementation.

I would like to get the list of all available WiFi networks in my app so the user can choose the camera WiFi and connect to it in app (the default camera password is in it's SSID).

Is this possible?

Answered by Systems Engineer in 683558022

I would like to get the list of all available WiFi networks in my app so the user can choose the camera WiFi and connect to it in app (the default camera password is in it's SSID). Is this possible?

Getting a list of available Wi-Fi networks to associate with is not possible, as explained in QA1942 for, On iOS, how can my app scan for nearby Wi-Fi networks?

Now, you can use NEHotspotConfiguration and NEHotspotConfigurationManager to create a network configuration from your app and then tell you device to associate with this network through your app. This seems like it would work if you are able to scan the a QR code or obtain the SSID of Camera by some external means? An example of scanning a QR code for network information and using NEHotspotConfiguration and NEHotspotConfigurationManager in an app can be found in the example for Configuring a Wi-Fi Accessory to Join the User’s Network.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

I would like to get the list of all available WiFi networks in my app so the user can choose the camera WiFi and connect to it in app (the default camera password is in it's SSID). Is this possible?

Getting a list of available Wi-Fi networks to associate with is not possible, as explained in QA1942 for, On iOS, how can my app scan for nearby Wi-Fi networks?

Now, you can use NEHotspotConfiguration and NEHotspotConfigurationManager to create a network configuration from your app and then tell you device to associate with this network through your app. This seems like it would work if you are able to scan the a QR code or obtain the SSID of Camera by some external means? An example of scanning a QR code for network information and using NEHotspotConfiguration and NEHotspotConfigurationManager in an app can be found in the example for Configuring a Wi-Fi Accessory to Join the User’s Network.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
List all available WiFi networks and auto connect to a specific one
 
 
Q