13

I know it is possible to list the available Wifi networks on iPhone using the CaptiveNetwork API from official Apple SDK.

I was wondering if there is a way to auto connect to a specific SSID programmatically as long as I can find it in the list returned by CaptiveNetwork ?

Patrick B.
  • 11,773
  • 8
  • 58
  • 101
Jerome
  • 609
  • 1
  • 5
  • 18

3 Answers3

5

Apple would not like you to do such things. Connecting to Wifi Stations is the responsibility of the user, so don't expect a public API. See e.g. here. Probably the makers of this app also would like to do it automatically.

Peter

Community
  • 1
  • 1
ilmiacs
  • 2,566
  • 15
  • 20
1

First of all, I don't think you will be able to get the list of available WiFi networks on iPhone using Captive network API. It will just give you the details of your connected wifi. And though there is private APIs to do this, Apple doesn't approve the apps that use them.

Kumaran
  • 31
  • 3
1

As I know, you only could get the current-connected wifi without using private api, but what confusing me is Nest iOS App do could get a list of available wifi, and Apple didn't reject it!!!

Percy Sun
  • 73
  • 1
  • 6
  • Is this still possible with recent versions of the Nest app? – ThomasW Jan 30 '15 at 08:35
  • 2
    Yes, still possible. I have figured out how Nest App achieve this: First, nest app should connect to the AP of Nest device(which contains a wifi module), and then the nest device will pass the wifi list to nest app. – Percy Sun Feb 07 '15 at 10:02