Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App rejected! #28

Closed
ergunkocak opened this issue Apr 30, 2019 · 3 comments
Closed

App rejected! #28

ergunkocak opened this issue Apr 30, 2019 · 3 comments

Comments

@ergunkocak
Copy link

Thanks for great library but Apple rejected our app because of this :( Here is the message from Apple :

our 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.

Specifically, your app uses the following non-public URL scheme:

app-prefs:root=touchid_passcode

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.

If there are no alternatives for providing the functionality your app requires, you can file an enhancement request.

@robcecil
Copy link

@robcecil
Copy link

robcecil commented Apr 30, 2019

@ergunkocak try something like this:

    guard let url = URL(string: UIApplication.openSettingsURLString) else { return }
    if UIApplication.shared.canOpenURL(url) {
      UIApplication.shared.open(url, options: [:], completionHandler: nil)
    }

rushisangani added a commit that referenced this issue Apr 30, 2019
@rushisangani
Copy link
Owner

@ergunkocak thanks for the feedback :)
I've updated the line mentioned by @robcecil in the example code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants