MSPush Class Reference

Inherits from NSObject
Declared in MSPush.h

Other Methods

  client

@property (nonatomic, strong, readonly, nonnull) MSClient *client

Initializing the MSPush Object

– initWithClient:

Initialize the MSPush instance with given MSClient

- (nonnull instancetype)initWithClient:(nonnull MSClient *)client

Discussion

Initialize the MSPush instance with given MSClient

Declared In

MSPush.h

Working with Registrations

  installationId

Gets the installation Id used to register the device with Notification Hubs.

@property (nonatomic, readonly, nonnull) NSString *installationId

Discussion

Gets the installation Id used to register the device with Notification Hubs.

Declared In

MSPush.h

– registerDeviceToken:completion:

Register for notifications with given a deviceToken.

- (void)registerDeviceToken:(nonnull NSData *)deviceToken completion:(nullable MSCompletionBlock)completion

Discussion

Register for notifications with given a deviceToken.

Declared In

MSPush.h

– registerDeviceToken:template:completion:

Register for notifications with given deviceToken and a template.

- (void)registerDeviceToken:(nonnull NSData *)deviceToken template:(nullable NSDictionary *)template completion:(nullable MSCompletionBlock)completion

Discussion

Register for notifications with given deviceToken and a template.

Declared In

MSPush.h

– unregisterWithCompletion:

Unregister device from all notifications.

- (void)unregisterWithCompletion:(nullable MSCompletionBlock)completion

Discussion

Unregister device from all notifications.

Declared In

MSPush.h