WDWPushConfiguration

Objective-C

@interface WDWPushConfiguration : NSObject

Swift

class WDWPushConfiguration : NSObject

Helper class to encapsulate Push Server configuration parameters.

  • Constructs the configuration object for push notifications

    Declaration

    Objective-C

    - (id)initWithPushToken:(NSData *)token
                     server:(NSString *)url
                  variantID:(NSString *)variant
                     secret:(NSString *)secret;

    Swift

    init!(pushToken token: Data!, server url: String!, variantID variant: String!, secret: String!)

    Parameters

    token

    Apple push notification token that you have received in the Application delegate, required

    url

    Push registration server URL, provided to you by Bosch, required

    variant

    Server variant ID, provided to you by Bosch, required

    secret

    Server access secret, provided to you by Bosch, required

  • Apple push notification token that you have received in the Application delegate, required

    Declaration

    Objective-C

    @property (nonatomic, strong) NSData *token;

    Swift

    var token: Data! { get set }
  • Push registration server URL, provided to you by Bosch, required

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *serverURL;

    Swift

    var serverURL: String! { get set }
  • Server variant ID, provided to you by Bosch, required

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *serverVariant;

    Swift

    var serverVariant: String! { get set }
  • Server access secret, provided to you by Bosch, required

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *serverSecret;

    Swift

    var serverSecret: String! { get set }