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

# CLLocationPushServiceError.Code.missingPushServerEnvironment

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

```
case missingPushServerEnvironment
```

## Discussion

A Location Push Service Extension requires that your app has the APNs environment entitlement. For more information, see <doc://com.apple.documentation/documentation/BundleResources/Entitlements/aps-environment>.

---

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)