Switching from view mode 1 to Bluetooth is not possible?

I ran into a problem when switching from mode 1 to Bluetooth, i.e. in view of 1, I gave 1 button ... by clicking on this button, I want to switch to view 2 (Bluetooth settings) .. but this may not be possible on the iPhone .. since we cannot access the default settings of the iPhone. For this we need to create application settings.

Q.1 Is there a way to access the default settings for Bluetooth on iPhone?

Q.2 Is there any official link where it can be noted that we cannot access the default settings?

I want an offer .. help .. Thanks in advance

+4
source share
1 answer

Applications cannot open the settings application on a specific screen. The reason apps like MapMyFitness’s open preferences is because they are asking for permission to use Bluetooth Low Energy. The permission request is managed by the CBCentralManager upon first use.

enter image description here

These pop-ups are automatically displayed by the system. The message can be configured using the purpose property for location services, which is not possible with Bluetooth.

The private API was not used for this, so there is no reason to reject the application.

Credit relates to the next question SO

how some applications can open a software application in their application

que 2.

At the beginning we open the settings page from the application. Using the line of code below: -

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

But now before ios5.0 it worked after this one depreciated. and so far, Apple has not provided a URL scheme to achieve this in newer versions.

Links of a similar question and answer: -

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

iPhone - Open settings from my iOS 6 app

can I open the Settings app using openURL?

Programmatically opening the settings application (iPhone)

How to open the Settings app when a user clicks a button?

iPhone: open the application settings panel from the application

Open UIPickerView by clicking on the entry in the application settings - How?

Open the Settings app?

+2
source

Source: https://habr.com/ru/post/1488632/


All Articles