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

Overview

NetmeraAndroidPush class is used to send push notifications into ANDROID devices from objective-c code.



NetmeraAndroidPush *push = [[NetmeraAndroidPush alloc] initWithMessage:@“Hello, Android Devices!” withDeviceGroups: nil];
[push sendNotificationInBackground];

Tasks

Instance Methods

initWithMessage:withDeviceGroups:

Constractor method that you can easily create instance of NetmeraAndroidPush 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 NetmeraAndroidPush object with push message and its device groups

Declared In

NetmeraAndroidPush.h

sendNotificationInBackground

Sends notification to Android devices in the background thread.

- (void)sendNotificationInBackground

Discussion

Sends notification to Android devices in the background thread.

Declared In

NetmeraAndroidPush.h

sendNotificationInBackgroundWithBlock:

Sends notification to Android 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 Android devices in the background thread.

Declared In

NetmeraAndroidPush.h

sendNotificationInBackgroundWithTarget:selector:

Sends notification to Android 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 Android devices in the background thread.

Declared In

NetmeraAndroidPush.h

sendNotificationWithError:

Sends notification to Android 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 Android devices.

Declared In

NetmeraAndroidPush.h