Search code examples
xcodecocoapodsapp-store-connectios10appstore-approval

My app rejected because uses the "prefs:root=" non-public URL scheme


I am got the message below from apple :

Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.

app-prefs:root=privacy&path=location

Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store.

Next Steps

To resolve this issue, please revise your app to provide the associated functionality using public APIs or remove the functionality using the "prefs:root" or "App-Prefs:root" URL scheme.

I am using below :

"App-Prefs:root=Privacy&path=LOCATION"

Kindly anyone can know how to solve this ?


Solution

  • Apple's message is pretty clear. There is only one legal way to open Settings, and that is to use UIApplication.openSettingsURLString.