APSEnvironment

@frozen
public enum APSEnvironment : String, CaseIterable

APSEnvironment is used to declare to which Apple Push Notification Service environment a device token is bound to.

APSEnvironment is used with SinchClient.registerPushNotificationDeviceToken:forPushType:apsEnvironment: or SinchManagedPush.

Example

An application which is codesigned and provisioned with a “Development” Provisioning Profile will be tied to the APNs Development environment.

An application which is codesigned and provisioned with a “Distribution” Provisioning Profile will be tied to the APNs Production environment.

See Apple documentation for further details: https://developer.apple.com/documentation/usernotifications/registering_your_app_with_apns?language=objc https://developer.apple.com/documentation/bundleresources/entitlements/aps-environment?language=objc

  • Used for development

    Declaration

    Swift

    case development
  • Used for AppStore builds

    Declaration

    Swift

    case production