views:

107

answers:

2

I currently have an application that requires the user to maintain a VPN tunnel, on load i check if the VPN tunnel is available.

I am wondering if there is anyway for me to display a UIAlertView which on clicking "OK" takes the user to the iPhone main settings screen, so they can turn on VPN.

I know how to store app specific settings and that seems to be the most common articles out there but is there any way to get your app to redirect the user to the main iphone settings page?

thanks in advance,

Harry.

A: 

iPhone has it's own NSURL protocols for apps, such as youtube:, mail:, etc. Judging by the "Airplane Mode" alert, there is clearly one for the Settings app. I imagine it is open, but don't know what the syntax would be off the top of my head. Check the docs about the protocols.

Jason McCreary
There's no documented URL scheme for Settings.
Ortwin Gentz
Looking at /Applications/Preferences.app/Info.plist, there isn't one.
tc.
A: 

As said, there's no way to do this currently. You'll have to create your own settings screen inside your app.

See a similar thread here:

How do I open the Settings application from my application?

ezekielDFM
Jason, if there really isn't a good way to do this, you should file an enhancement request and tell Apple how it would make your app better if this functionality were made available. The website is bugreporter.apple.com.
Alex Martini