SINAPSEnvironment Constants Reference
Declared in | SINAPSEnvironment.h |
---|
SINAPSEnvironment
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 Gateway (gateway.sandbox.push.apple.com)
An application which is codesigned and provisioned with a “Distribution” Provisioning Profile will be tied to the APNS Production Gateway (gateway.push.apple.com)
The macro SINAPSEnvironmentAutomatic
can be used to specify SINAPSEnvironment based on the type of build.
(Because it is a pre-processor macro, it will be based on build configuration (Debug/Release) of the application
which is consuming the Sinch SDK.)
See Apple documentation for further details: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ProvisioningDevelopment.html
Definition
typedef NS_ENUM(NSInteger, SINAPSEnvironment ) {
SINAPSEnvironmentDevelopment = 1,
SINAPSEnvironmentProduction = 2,
};
Constants
SINAPSEnvironmentDevelopment
-
SINAPSEnvironment is used to declare to which Apple Push Notification Service environment a device token is bound to.
Declared In
SINAPSEnvironment.h
. SINAPSEnvironmentProduction
-
SINAPSEnvironment is used to declare to which Apple Push Notification Service environment a device token is bound to.
Declared In
SINAPSEnvironment.h
.
Declared In
SINAPSEnvironment.h