<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreLocation",
  "identifier" : "/documentation/CoreLocation/CLError-swift.struct/Code/deferredCanceled",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Core Location"
    ],
    "preciseIdentifier" : "c:@E@CLError@kCLErrorDeferredCanceled"
  },
  "title" : "CLError.Code.deferredCanceled"
}
-->

# CLError.Code.deferredCanceled

A constant that indicates your app or the location manager canceled the request for deferred updates.

```
case deferredCanceled
```

## Discussion

This error is returned if you call the [`disallowDeferredLocationUpdates()`](/documentation/CoreLocation/CLLocationManager/disallowDeferredLocationUpdates()) method or schedule a new deferred update before the previous deferred update request is processed. The location manager may also report this error too. For example, if the app is in the foreground when a new location is determined, the location manager cancels deferred updates and delivers the location data to your app.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)