SINAPSEnvironment

Objective-C

enum SINAPSEnvironment {}

Swift

enum SINAPSEnvironment : Int

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

SINAPSEnvironment is used with -[SINClient registerPushNotificationDeviceToken:type:apsEnvironment:] or SINManagedPush.

  • 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

  • APNs Development environment

    Declaration

    Objective-C

    SINAPSEnvironmentDevelopment = 1

    Swift

    case development = 1
  • APNs Production environment

    Declaration

    Objective-C

    SINAPSEnvironmentProduction = 2

    Swift

    case production = 2