Is there any way to determine whether location services have been disabled for a specific app? The problem is that [CLLocationManager locationServicesEnabled] returns YES even if location services have been disabled for a specific app...
+2
A:
When you implement the delegate for location manager, you should be implementing didFailWithError. In there you will get the appropriate error if the user did not allow access to location
Apple Documentation States:
If the user denies your application’s use of the location service, this method reports a kCLErrorDenied
error. Upon receiving such an error, you should stop the location service.
Aaron Saunders
2010-10-20 02:31:15
Is there any other way? ís The function similar function: locationServicesEnabled?. In your case, your way is also a bit complicated.
becktoan
2010-10-20 05:38:42
@becktoan it is what it is, read the documentation link I provided above
Aaron Saunders
2010-10-20 12:18:47