How to connect to the saved wifi network in iOS programatically?

Hi,

Is it possible to programatically connect to saved network without password?. Is there any NEHotspotConfigurationManager configuration available for the same?.

I’m not sure I understand your question here. Can you describe a user-level walk through of what you’re trying to achieve?

Share and Enjoy

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

@eskimo Let's say I programmatically connected my iOS iPhone to a WIFI and it was disconnected for some reason. I don't want to save the password in the app. I now need to reconnect the device to the same WiFi network, but I am unable to do so because I do not know the password.Since I've already connected to the network once, is there a way to see if the device is already listed in the remembered devices list and reconnect to it?

Since I've already connected to the network once, is there a way to see if the device is already listed in the remembered devices list

Yes, using -getConfiguredSSIDsWithCompletionHandler:.

and reconnect to it?

No. Once you’ve saved a configuration in the list, iOS should try to reconnect to it automatically but there’s no way to force that other than to call -applyConfiguration:completionHandler:, and that requires you to know the password.

If you’d like to add support for this in the future, I encourage you to file an enhancement request describing your requirements.

Please post your bug number, just for the record.

Share and Enjoy

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

@eskimo Thanks for your suggestion.

I have filed an enhancement request: FB11842144 (Need feature to reconnect to the networks that is joined through NEHotspotConfigurationManager. )

How to connect to the saved wifi network in iOS programatically?
 
 
Q