How do you determine with CLLocationManager when a user denies access to location services?
With CLLocationManager I can use the following code to determine if I can access location services on the device. This is the master setting for all apps and can be turned on and off.

    if (self.locationManager.locationServicesEnabled) {
        [self.locationManager startUpdatingLocation];
    }

But a user can deny access to an individual app and in order to not execute the code to use the location manager I need to know if the user approved access to location services for this specific app. I saw that at one point there was a property called locationServicesApproved which appears it would indicate if the user approved access to location services in this app. But it was removed in 2008.

Source: http://trailsinthesand.com/apple-removes-notifications-from-iphone-sdk-beta-4/

It appears that there is no way to determine if the user approved access to location services but that seems to be a big hole in the SDK.

Is this feature in the SDK elsewhere? What can I do to determine if the user has approved access to location services for the current app?



How do you determine with CLLocationManager when a user denies access to location services?
===

With CLLocationManager I can use the following code to determine if I can access location services on the device. This is the master setting for all apps and can be turned on and off.

    if (self.locationManager.locationServicesEnabled) {
        [self.locationManager startUpdatingLocation];
    }

But a user can deny access to an individual app and in order to not execute the code to use the location manager I need to know if the user approved access to location services for this specific app. I saw that at one point there was a property called locationServicesApproved which appears it would indicate if the user approved access to location services in this app. But it was removed in 2008.

Source: http://trailsinthesand.com/apple-removes-notifications-from-iphone-sdk-beta-4/

It appears that there is no way to determine if the user approved access to location services but that seems to be a big hole in the SDK.

Is this feature in the SDK elsewhere? What can I do to determine if the user has approved access to location services for the current app?


