<!--
{
  "documentType" : "article",
  "framework" : "PushToTalk",
  "identifier" : "/documentation/PushToTalk/PTInstantiation-error-constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Error constants"
}
-->

# Error constants

Error codes for instantiation operations.

## Topics

### Constants

[`static var unknown: PTInstantiationError.Code`](/documentation/PushToTalk/PTInstantiationError-swift.struct/unknown)

An instantiation error that indicates an unknown error.

[`static var invalidPlatform: PTInstantiationError.Code`](/documentation/PushToTalk/PTInstantiationError-swift.struct/invalidPlatform)

An instantiation error that indicates the API isn’t available on the simulator or macOS devices.

[`static var missingBackgroundMode: PTInstantiationError.Code`](/documentation/PushToTalk/PTInstantiationError-swift.struct/missingBackgroundMode)

An instantiation error that indicates the app doesn’t have the background mode in an enabled state.

[`static var missingPushServerEnvironment: PTInstantiationError.Code`](/documentation/PushToTalk/PTInstantiationError-swift.struct/missingPushServerEnvironment)

An instantiation error that indicates the app doesn’t have the push notification capability in an enabled state.

[`static var missingEntitlement: PTInstantiationError.Code`](/documentation/PushToTalk/PTInstantiationError-swift.struct/missingEntitlement)

An instantiation error that indicates the app is missing the entitlement.

[`static var instantiationAlreadyInProgress: PTInstantiationError.Code`](/documentation/PushToTalk/PTInstantiationError-swift.struct/instantiationAlreadyInProgress)

An instantiation error that indicates there’s already an in-flight instantiation request.



---

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)