Bozho
Bozho

Reputation: 597324

Is it possible to disable WiFi and 3G on iOS

I am investigating whether it is possible to port an app of mine to iOS, and the features that are probably the most important, are:

Is this possible somehow on iOS, and if it is - is it likely to be allowed on the appstore.

Upvotes: 0

Views: 161

Answers (2)

Shamsudheen TK
Shamsudheen TK

Reputation: 31311

Definitely, it is not possible in non-jail-broken devices. This will for sure lead to the rejection of your application.

To enable this feature on any device, steal a class from SpringBoard (use the SBWiFiManager.h class reference).

[[_SBWifiManager sharedInstance] setWiFiEnabled:NO];

Upvotes: 3

rckoenes
rckoenes

Reputation: 69499

No this is not possible on iOS if you want you app in the app store.

Apple doesn't allow interaction with hardware at this level. You can detect connection type of the current internet connection and that is it.

On a jailbroken device this should be possible.

Upvotes: 1

Related Questions