---
title: CLLocationPushServiceError.Code
framework: corelocation
role: symbol
role_heading: Enumeration
path: corelocation/cllocationpushserviceerror-swift.struct/code
---

# CLLocationPushServiceError.Code

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

## Declaration

```swift
enum Code
```

## Overview

Overview These error codes are returned from startMonitoringLocationPushes(completion:)

## Topics

### Getting the error code

- [CLLocationPushServiceError.Code.unknown](corelocation/cllocationpushserviceerror-swift.struct/code/unknown.md)
- [CLLocationPushServiceError.Code.missingPushExtension](corelocation/cllocationpushserviceerror-swift.struct/code/missingpushextension.md)
- [CLLocationPushServiceError.Code.missingPushServerEnvironment](corelocation/cllocationpushserviceerror-swift.struct/code/missingpushserverenvironment.md)
- [CLLocationPushServiceError.Code.missingEntitlement](corelocation/cllocationpushserviceerror-swift.struct/code/missingentitlement.md)
- [CLLocationPushServiceError.Code.unsupportedPlatform](corelocation/cllocationpushserviceerror-swift.struct/code/unsupportedplatform.md)

### Initializers

- [init(rawValue:)](corelocation/cllocationpushserviceerror-swift.struct/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Location push service extension

- [Location Push Service Extension](bundleresources/entitlements/com.apple.developer.location.push.md)
- [CLLocationPushServiceExtension](corelocation/cllocationpushserviceextension.md)
- [CLLocationPushServiceError](corelocation/cllocationpushserviceerror-swift.struct.md)
- [CLLocationPushServiceErrorDomain](corelocation/cllocationpushserviceerrordomain.md)
