Back

Technologies:

javascriptjavascript
avatar
Tolerim
12 days ago

What is the method to access iOS settings from a JavaScript web application in the iOS Chrome browser?

As a senior JavaScript developer, I am tasked with finding a solution for redirecting to the iOS general settings when a button is clicked in a web application from the iOS Chrome browser. The following block of code works successfully in Safari, but not in iOS Chrome: <a target="_blank" href="App-prefs://prefs:root=Privacy&path=LOCATION"> Open Settings </a> Although I have searched through various forums, I have yet to find a solution that specifically addresses the issue in iOS Chrome. Do you have any suggestions or insights on this matter?
Answers(2)
avatar
Vogi
11 days ago
Verified Answer
I found a solution that might work for you. You can try using the following code instead: <a target="_blank" href="App-prefs:root=General&path=About"> Open Settings </a> This code should work in both Safari and Chrome. If you want to redirect to a specific setting, you can replace "General" and "About" with the appropriate setting name and path. I hope this helps! Let me know if you have any other questions.

Sources

How to open iOS settings from javascript web application in iOS chrome ...See full redirect path and HTTP status code in Chromeios - How to redirect the user to a mobile app or a website on click of ...Change site settings permissions - iPhone & iPad - Google Chrome Help
;