Contents

CLAuthorizationStatus.denied

The user denied the use of location services for the app or they are disabled globally in Settings.

Declaration

case denied

Discussion

When the authorization status is denied, your app can’t use location services. The status can be denied when:

  • The user denied location permissions for your app.

  • The user turned off location services for the device in Settings.

  • Location services are unavailable because the device is in Airplane mode.

If the user re-enables location services in Settings, your app’s authorization returns to its previous state. The status change is reported to your delegate’s locationManager(_:didChangeAuthorization:) method.

You may call locationServicesEnabled() if you wish to determine whether location services are available globally on the device.

See Also

Getting the authorization status