Is there any framework or utility available for making settings like wifi/bluetooth from iphone application in IOS. I need to develop such an application that can set the wifi and bluetooth on/off.
-
Is your app for in-house distribution? If not, the app won't be approved in the AppStore. – Natan R. Jul 25 '12 at 07:34
-
Yes, I developing it for In-House. – MobileGeek Jul 25 '12 at 07:37
-
Not true. Apps will get approved. I can concur. – basvk Jul 25 '12 at 07:59
-
Class BluetoothManager = objc_getClass("BluetoothManager"); may work for bluetooth. Can any one help me for other setting options like wifi, aeroplane mode, etc. – MobileGeek Jul 25 '12 at 08:03
-
Please check: http://stackoverflow.com/questions/4518406/is-there-a-way-to-toggle-bluetooth-and-or-wifi-on-and-off-programatically-in-ios – Niraj Sep 02 '15 at 12:39
4 Answers
Apple doesn't provide any APIs for doing this out of the box, The case is different with Jailbroken iOS devices though. SBSettings is an app that does all what you asked but works only on a jailbroken iOS device.

- 11
- 2
Toggling bluetooth was possible using the GameKit APIs, though it is not a straight forward method. If you want pointers on this i can share the links ( need to do some searching on my bookmarks history though) a simple google search would reveal this method. But i understand your requirement is much more than this one, so like the user24921 said, you need a Jailbreak iPhone/iPad for accessing those Private APIs.

- 109
- 3
-
Do the GameKit APIs you mention include toggling BT discoverability? I'd love to see a link or two if you have them. – pforhan Oct 15 '12 at 15:06
If your app is for in-house distribution, it doesn't require to go through AppStore so it won't be reviewed. Here is an answer that maybe can help you: Programmatically turn on bluetooth in the iphone sdk?
Something like this?
Class BluetoothManager = objc_getClass("BluetoothManager");
bluetoothManager = [BluetoothManager sharedInstance];
[bluetoothManager setEnabled:YES];
[bluetoothManager setPowered:YES];

- 4,437
- 3
- 29
- 49
-
-
A simple search ends up here: http://stackoverflow.com/questions/2053114/iphone-wi-fi-manager-sdk – basvk Jul 25 '12 at 08:03