0

Apple has documented ways to go to the settings app from any iOS app. But is there any way to launch the permissions (of the app) inside the settings app directly?

I saw this private header (preferences framework) and it kind of seems to accomplish the task, but I am not sure how to use it.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Mj.B
  • 191
  • 9
  • Your question is quite confusing, if I understood it right I have posted the right answer, if not kindly let me know. – Arpit Dongre Dec 01 '16 at 18:25

1 Answers1

0

Here you go, with UIApplicationOpenSettingsURLString:

if let appSettings = NSURL(string: UIApplicationOpenSettingsURLString) {
    UIApplication.sharedApplication().openURL(appSettings)
}
Cœur
  • 37,241
  • 25
  • 195
  • 267
Arpit Dongre
  • 1,683
  • 19
  • 30
  • Hi @arpit: This opens the settings application. from there it is one click away for viewing the permissions of your app. I want to jump there directly. – Mj.B Dec 01 '16 at 18:25
  • @Mj.B on iOS11, it does open what you want. And that's the best you will get: any deeper access to a specific sub-screen is strictly private and will get your app rejected during iTunes Connect review, unless new features are made available in future iOS/Xcode versions. – Cœur May 17 '18 at 11:06