htmliosiphonehyperlinkdeep-linking

Open iOs settings with href link


I have a web application that uses location, I would like to help the user enable location services if it is disabled on the device.

To continue please : Enable the Location Services toggle.

This is what i tried :

  <a href="prefs:root=Privacy&path=LOCATION">the Location Services</a>

Of course, I tried all possible schemes:

App-prefs://
App-prefs:
prefs://
prefs:
prefs:root
prefs:root=

But safari always tell me :

Safari cannot open the page because the address is invalid


Solution

  • You can't open a specific sub-menu in the settings due to Apple restrictions.

    However you can open the main settings of an iPhone with this url:

    App-Prefs://prefs:root
    

    Please note that according to Apple only the schemes explicitly documented are supported. Everything else is considered to be a private API.

    ⚠ The App-Prefs URL scheme is not documented for third-party use!