---
title: missingPushServerEnvironment
framework: corelocation
role: symbol
role_heading: Type Property
path: corelocation/cllocationpushserviceerror-swift.struct/missingpushserverenvironment
---

# missingPushServerEnvironment

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

## Declaration

```swift
static var missingPushServerEnvironment: CLLocationPushServiceError.Code { get }
```

## 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

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