Inherits from BasePush : NSObject
Declared in NetmeraIOSPush.h
NetmeraIOSPush.m

Overview

NetmeraIOSPush class is used to send push notifications into IOs devices from objective-c code.



NetmeraIOSPush push = [[NetmeraIOSPush alloc] initWithMessage:@“Hello, IOS Devices!” withDeviceGroups:nil];
[push sendNotificationInBackgroundWithBlock:^(NSError
error, NetmeraPushInfo *pushInfo) {
NSLog(@“pushInfo.pushMessage; %@”, pushInfo.pushMessage);
NSLog(@“pushInfo.status; %@”, pushInfo.status);
}];

Tasks

Instance Methods

initWithMessage:withDeviceGroups:

Constractor method that you can easily create instance of NetmeraIOSPush object with push message and its device groups

- (id)initWithMessage:(NSString *)message withDeviceGroups:(NSArray *)deviceGroups

Parameters

message

Body of your push notification

deviceGroups

Names of your target group

Discussion

Constractor method that you can easily create instance of NetmeraIOSPush object with push message and its device groups

Declared In

NetmeraIOSPush.h

sendNotificationInBackground

Sends notification to IOs devices in the background thread.

- (void)sendNotificationInBackground

Discussion

Sends notification to IOs devices in the background thread.

Declared In

NetmeraIOSPush.h

sendNotificationInBackgroundWithBlock:

Sends notification to IOs devices in the background thread.

- (void)sendNotificationInBackgroundWithBlock:(void ( ^ ) ( NSError *error , NetmeraPushInfo *pushInfo ))block

Parameters

block

The block to execute. The block should have the following argument signature: (NSError error, NetmeraPushInfo pushInfo)

Discussion

Sends notification to IOs devices in the background thread.

Declared In

NetmeraIOSPush.h

sendNotificationInBackgroundWithTarget:selector:

Sends notification to IOs devices in the background thread.

- (void)sendNotificationInBackgroundWithTarget:(id)target selector:(SEL)selector

Parameters

target

The object to call selector on.

selector

The selector to call. It should have the following signature: (void) callBackSendNotificationWithError:(NSError )error pushInfo:(NetmeraPushInfo )info

Discussion

Sends notification to IOs devices in the background thread.

Declared In

NetmeraIOSPush.h

sendNotificationWithError:

Sends notification to IOs devices.

- (NetmeraPushInfo *)sendNotificationWithError:(NSError **)error

Parameters

error

if it cannot access server

Return Value

NetmeraPushInfo object that includes information about your push message

Discussion

Sends notification to IOs devices.

Declared In

NetmeraIOSPush.h