0

I have a quick question is there a system call I can make that will provide an alert with the option to go to settings in case location services have been disabled on iOS versions prior to 5?

As far as I know there is no URL scheme for the settings app before 5.0.

Any ideas?

John Lane
  • 1,112
  • 1
  • 14
  • 32

1 Answers1

2

You are right. There is no URL scheme for that.

You can refer these threads :

UIAlertView like "Turn On Location Services to allow maps to determine your location". Settings + Cancel

Programmatically opening the settings app (iPhone)

is it possible to open Settings App using openURL?

Also, you can check your CLLocationManagerDelegate didFailWithError method for error code. If the error code is kCLErrorDenied, you know that Location services are not enabled

Community
  • 1
  • 1
akshay1188
  • 1,647
  • 2
  • 17
  • 35