1

I am well aware that using private APIs to access network info will get your app rejected.

However, assuming that I have a jailbroken device, is it possible to programmatically switch between two WiFi networks?

Cœur
  • 37,241
  • 25
  • 195
  • 267
user1032657
  • 2,451
  • 6
  • 28
  • 38

1 Answers1

1

You're gonna have to use MobileApple80211 framework.

For how to use this framework stumbler is probably best learning tool - source code.

It's not built as an XCode project though, so prepare for some tweaking.

Rok Jarc
  • 18,765
  • 9
  • 69
  • 124
  • Unfortunately this doesn't seem to show how to connect to a network. – user1032657 May 25 '12 at 03:09
  • 1
    True - it's more of an example of where to look. You're gonna have to dig into [private API's](https://github.com/nst/iOS-Runtime-Headers/tree/master/PrivateFrameworks). AirTraffic.framework could also seem interesting for your task, for example. – Rok Jarc May 25 '12 at 06:29