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

# CLLocationPushServiceError.Code.missingPushServerEnvironment

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

## Declaration

```swift
case missingPushServerEnvironment
```

## Discussion

Discussion A Location Push Service Extension requires that your app has the APNs environment entitlement. For more information, see APS Environment Entitlement.

## See Also

### 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.missingEntitlement](corelocation/cllocationpushserviceerror-swift.struct/code/missingentitlement.md)
- [CLLocationPushServiceError.Code.unsupportedPlatform](corelocation/cllocationpushserviceerror-swift.struct/code/unsupportedplatform.md)
