<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreLocation",
  "identifier" : "/documentation/CoreLocation/CLLocationPushServiceError-swift.struct/missingPushServerEnvironment",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Location"
    ],
    "preciseIdentifier" : "s:SC26CLLocationPushServiceErrorLeV07missingB17ServerEnvironmentSoAAVvpZ"
  },
  "title" : "missingPushServerEnvironment"
}
-->

# missingPushServerEnvironment

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

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

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