4

I am facing problem in switching from view 1 to Bluetooth settings i.e in view 1 i have given 1 Button..on clicking on that button i want to switch to view 2(Bluetooth settings)..but it can't be possible in iPhone..since we can't access the default settings of iPhone..for that we have to create the application preferences..

Q.1 Is there any way to access the default settings of Bluetooth in iPhone?

Q.2 Is there any official link where it can be mention that we can't access the default settings?

I want suggestion..please help.. Thanks in advance

Brijesh Singh
  • 739
  • 1
  • 6
  • 23

1 Answers1

2

Apps cannot open the settings application to a specific screen. The reason that apps like MapMyFitness open preferences is because they ask for permission to use Bluetooth Low Energy. Asking for permission is managed by CBCentralManager on first usage.

enter image description here

These popups are shown automatically by the system framework. The message can be customized using the purpose property for location services, that is not possible in case of Bluetooth.

No private API was used for this, so there's no reason for the app to be rejected.

Credit goes to this bellow SO question

how some apps can open setting app programmatically within their app

que 2.

At previous we are opening Setting Page from app Using Bellow line of Code:-

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];

But now upto ios5.0 it was working after that this one depreciated. and Till now Apple not providing the URL Schema for achieving this one in newer versions.

Links of similar question and it's Answer:-

Call the official *Settings* app from my app on iPhone

iPhone- Open Settings from my application iOS 6

is it possible to open Settings App using openURL?

Programmatically opening the settings app (iPhone)

How can I open the Settings app when the user presses a button?

iPhone: Opening Application Preferences Panel From App

Open UIPickerView by clicking on an entry in the app's preferences - How to?

Open the Settings app?

Community
  • 1
  • 1
Nitin Gohel
  • 49,482
  • 17
  • 105
  • 144