Inherits from NMPushSenderObject : NMPushObject : NSObject
Declared in NMRichPushSenderObject.h
NMRichPushSenderObject.m

Overview

NMRichPushSenderObject class is used to send html-formatted content. By using this class, push notifications that contains well-designed html pages can be sent instead of plain text notifications.

Tasks

Other Methods

  •   htmlString

    String representation of rich push notification HTML. This property is required.

    property
  • – initWithTitle:alertText:richPushHTML:

    Initializes the newly allocated NMRichPushSenderObject with the specified title, alert text and rich push HTML values of push notification.

Other Methods

Properties

htmlString

String representation of rich push notification HTML. This property is required.

@property (nonatomic, strong) NSString *htmlString

Discussion

String representation of rich push notification HTML. This property is required.

Declared In

NMRichPushSenderObject.h

Instance Methods

initWithTitle:alertText:

Initializes the newly allocated NMPushSenderObject with the specified title and alert text values of push notification.

- (id)initWithTitle:(NSString *)title alertText:(NSString *)text

Parameters

title

Title of the push notification.

text

Message of the push notification.

Return Value

An initialized NMPushSenderObject object with given parameters.

Discussion

Initializes the newly allocated NMPushSenderObject with the specified title and alert text values of push notification.

Declared In

NMPushSenderObject.h

initWithTitle:alertText:richPushHTML:

Initializes the newly allocated NMRichPushSenderObject with the specified title, alert text and rich push HTML values of push notification.

- (id)initWithTitle:(NSString *)title alertText:(NSString *)text richPushHTML:(NSString *)htmlText

Parameters

title

Title of the push notification.

text

Message of the push notification.

htmlText

String representation of rich push HTML content of the push notification.

Return Value

An initialized NMRichPushSenderObject object with given parameters.

Discussion

Initializes the newly allocated NMRichPushSenderObject with the specified title, alert text and rich push HTML values of push notification.

Declared In

NMRichPushSenderObject.h

sendPushNotificationWithCompletionHandler:

Sends the push notification asynchronously.

- (void)sendPushNotificationWithCompletionHandler:(void ( ^ ) ( NSString *, NSError *))handler

Parameters

handler

The block to execute when the sending push notification is completed.

Discussion

Sends the push notification asynchronously.

Declared In

NMPushSenderObject.h