<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreLocation",
  "identifier" : "/documentation/CoreLocation/CLLocationPushServiceError-swift.struct/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Location"
    ],
    "preciseIdentifier" : "c:@E@CLLocationPushServiceError"
  },
  "title" : "CLLocationPushServiceError.Code"
}
-->

# CLLocationPushServiceError.Code

Error codes the location manager returns if starting to monitor for location push notifications fails.

```
enum Code
```

## Overview

These error codes are returned from [`startMonitoringLocationPushes(completion:)`](/documentation/CoreLocation/CLLocationManager/startMonitoringLocationPushes(completion:))

## Topics

### Getting the error code

[`CLLocationPushServiceErrorUnknown`](/documentation/CoreLocation/CLLocationPushServiceError-swift.struct/Code/unknown)

An error code that indicates the app was unable to start the location push service for an unknown reason.

[`CLLocationPushServiceErrorMissingPushExtension`](/documentation/CoreLocation/CLLocationPushServiceError-swift.struct/Code/missingPushExtension)

An error code that indicates the app is missing a Location Push Service Extension.

[`CLLocationPushServiceErrorMissingPushServerEnvironment`](/documentation/CoreLocation/CLLocationPushServiceError-swift.struct/Code/missingPushServerEnvironment)

An error code that indicates the app is missing an Apple Push Notification service (APNs) environment entitlement.

[`CLLocationPushServiceErrorMissingEntitlement`](/documentation/CoreLocation/CLLocationPushServiceError-swift.struct/Code/missingEntitlement)

An error code that indicates the app is missing the entitlement it needs to use the location push service.

[`CLLocationPushServiceErrorUnsupportedPlatform`](/documentation/CoreLocation/CLLocationPushServiceError-swift.struct/Code/unsupportedPlatform)

An error code that indicates the location push service isn’t available on this platform.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)