Is it considered a private API to use App-prefs:root?

Ross Stepaniak picture Ross Stepaniak · Mar 26, 2018 · Viewed 11.5k times · Source

In my app I'm using [NSURL URLWithString:@"App-Prefs:root=Privacy&path=LOCATION"] to open settings screen. Will it be rejected by apple as according to some sources this is considered a private API?

Answer

Gereon picture Gereon · Mar 26, 2018

Yes. The only legal way to open Settings is to use UIApplicationOpenSettingsURLString.