Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

connect to a specific wifi programmatically in ios with a given SSID and Password [duplicate]

Tags:

ios

iphone

is it possible to make an application connect to a wifi spot in ios, provided that the app knows the Name/SSID and password.

like image 862
user2559369 Avatar asked Mar 25 '14 06:03

user2559369


1 Answers

Contrary to what you see here and other places, you can do it. But it's not pretty. It's an enterprise admin thing, but anyone can do it. Look up "Connection Profiles." Comcast does this in their iOS app to setup their hotspots for you, for example.

Basically, it's an XML document that you get the device to ingest via Safari or Mail. There's a lot of tricks to it and the user experience isn't great, but I can confirm that it works in iOS 10 and it doesn't require jailbreaking. You use Configurator to generate the XML, and I suggest this thread for serving it, and this blog for querying if it's installed.

like image 179
Eliot Gillum Avatar answered Oct 17 '22 15:10

Eliot Gillum