Redirect to Settings Page
TLDR;
// iOS 8/9
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];
// iOS 10 or later
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"App-Prefs:root=WIFI"]];iOS 9.2 need to add URL schemes prefs
prefsGo to Project settings --> Info --> URL Types --> Add New URL SchemesRedirect to Settings Page by [UIApplication:openURL:]:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:<path_to_settings>]];Format of the values for <path_to_settings>:
<path_to_settings>:For iOS 8/9
pref:<path>For iOS 10 or later
App-Prefs:<path>Some of the possible values for the path
UIApplicationOpenSettingsURLString
root=General&path=About
root=AIRPLANE_MODE
root=Privacy&path=CAMERAWill the app be rejected by Apple?
Still unclear but researched some of the cases:
PreviousFailed to open Xcode (LSOpenURLsWithRole() failed with error -10699)NextRetrieve expiry date of Provisioning Profile Certificate from .ipa
Last updated
Was this helpful?