Opening Settings Application - ios

Would the following be considered as private API use? After googling I have found many conflicting reports.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"prefs://"]];
Also does anyone have a list of valid urls within the settings application? For example:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"prefs://notifications"]];
will open the notifications page of the settings application.

I have found the answer to my own question.
It is supported in iOS5.
URL Schemes can be found here: http://maniacdev.com/2011/11/tutorial-using-url-schemes-to-open-the-settings-app-to-a-specific-page-in-ios-5/

Related

Url Scheme for ADVERTISING iOS 12.0

I used:
NSURL *url = [NSURL URLWithString:#"App-Prefs:root=Privacy&path=ADVERTISING"];
[[UIApplication sharedApplication] openURL:url];
it worked on iOS 11.x and before.
but with iOS 12.x it doesn't work.
Apple no longer allows prefs:root= via section 2.5.1 in their guidelines (they now consider what you're doing a non-public URL scheme).
The best you can do is open up your app settings and the top level should be simple enough that the user can get to where they need from there.
Perhaps something like:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

Open iOS settings from the app

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
I am using this code to open settings app from my app. But is there any URL to open Background App Refresh settings from my app?
No, you are not able to open any specific part in setting from your app. You are just able to redirect to user to those settings which are related to your app permission.

How to open default music app into my application ios 10

Based in this link.
Works perfect but me in old ios versions, but in ios 10 not works.
This is my code:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"music://"]];
I'm testing with
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"music://"] options:#{} completionHandler:nil];
but it does not work
Just add Privacy - Media Library Usage Description in .plist. That solves the problem

How to open general settings (not in the app settings) from the app in iOS 8?

I know about this
if (&UIApplicationOpenSettingsURLString != NULL) {
NSURL *appSettings = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
[[UIApplication sharedApplication] openURL:appSettings];
}
But I wanna know if its possible to go to the general settings. I need users to enable the keyboard but landing in the app settings confused many users. Any suggestions to open the general settings and even if possible the keyboards section?
You cannot open system apps in iOS. You can show them the path to the message though.
'Settings->General->Keyboard' etc in a modal whenever you wish to display this information to the user.
Starting from iOS 10 the one can use "App-Prefs:root" URL:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"App-Prefs:root"]];

Launching settings app from custom iOS application

Is there any way to launch the build-in iOS settings application from our custom applications.
Based on the URL schema , it is possible to launch safari,maps,YouTube,iTunes... etc. But in the documentation there is no any info related with settings app.
TIA.
-Balaji R.
//code for opening settings app in iOS 8
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
//code for opening settings App in ios5
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"prefs:root=WIFI"]];
No you can not. Opening the Settings app from another app

Resources