I have to open settings app from my app if gps is not enabled in iPhone. I have used the following code. It works well in iOS simulator but it does not work in iPhone. May I
As others answered, you cannot open the Settings from your app.
However You can solve the situation, like I have done:
Output a message that Location services must be enabled explaining why, and show the path in that message:
"Settings->Privacy->LocationServices"