Inherits from NSObject
Declared in NMPushPlatformReport.h
NMPushPlatformReport.m

Overview

NMPushPlatfromReport class is used to present the information about a push notification sent to a certain platform. These platfroms can be iOS, Android or Windows Phone.

Tasks

  •   platform

    Name of the platform-specific information of the push notification.

    property
  •   sendDate

    Date of the push notification, which is started to send to the devices that are registrated to the relevant platform .

    property
  •   finishedDate

    Date of the push notification, which is finished to send to the devices that are registered to the relevant platform.

    property
  •   status

    Status of the created push notification object of the relevant platform.

    property
  •   successCount

    Number of the devices that received the platform-based push notification successfully.

    property
  •   failedCount

    Number of the devices that could not receive the platform-based push notification.

    property
  •   platformErrorDescription

    Cause of the error if it occured while sending the platform-based push notification.

    property
  • + stringFromNotificationStatus:

    Converts NotificationStatus enum type into string format that refers to notification status.

Properties

failedCount

Number of the devices that could not receive the platform-based push notification.

@property (nonatomic, readonly, assign) NSUInteger failedCount

Discussion

Number of the devices that could not receive the platform-based push notification.

Declared In

NMPushPlatformReport.h

finishedDate

Date of the push notification, which is finished to send to the devices that are registered to the relevant platform.

@property (nonatomic, readonly, strong) NSDate *finishedDate

Discussion

Date of the push notification, which is finished to send to the devices that are registered to the relevant platform.

Declared In

NMPushPlatformReport.h

platform

Name of the platform-specific information of the push notification.

@property (nonatomic, readonly, assign) NMNotificationPushPlatform platform

Discussion

Name of the platform-specific information of the push notification.

Warning: enum NotificationPushPlatform options.

NotificationPushPlatformIOS, ‘IOS’ Platform.

NotificationPushPlatformAndroid, ‘Android’ Platform.

NotificationPushPlatformWP, ‘WP’ Platform.

Declared In

NMPushPlatformReport.h

platformErrorDescription

Cause of the error if it occured while sending the platform-based push notification.

@property (nonatomic, readonly, strong) NSString *platformErrorDescription

Discussion

Cause of the error if it occured while sending the platform-based push notification.

Declared In

NMPushPlatformReport.h

sendDate

Date of the push notification, which is started to send to the devices that are registrated to the relevant platform .

@property (nonatomic, readonly, strong) NSDate *sendDate

Discussion

Date of the push notification, which is started to send to the devices that are registrated to the relevant platform .

Declared In

NMPushPlatformReport.h

status

Status of the created push notification object of the relevant platform.

@property (nonatomic, readonly, assign) NMNotificationStatus status

Discussion

Status of the created push notification object of the relevant platform.

Warning: enum NotificationStatus options.

NotificationDrafted, means the push notification is saved as draft.

NotificationSending, means the push notification is still sending to the devices.

NotificationFinished, means the push notification was sent to relevant devices.

NotificationFailed, means the sending the push notification to relevant devices is failed.

Declared In

NMPushPlatformReport.h

successCount

Number of the devices that received the platform-based push notification successfully.

@property (nonatomic, readonly, assign) NSUInteger successCount

Discussion

Number of the devices that received the platform-based push notification successfully.

Declared In

NMPushPlatformReport.h

Class Methods

stringFromNotificationStatus:

Converts NotificationStatus enum type into string format that refers to notification status.

+ (NSString *)stringFromNotificationStatus:(NMNotificationStatus)status

Parameters

status

Enum type of the push notification status.

Return Value

Corresponding string of the push notification status.

Discussion

Converts NotificationStatus enum type into string format that refers to notification status.

Declared In

NMPushPlatformReport.h