NetmeraAndroidPush Class Reference
| 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
-
– initWithMessage:withDeviceGroups:Constractor method that you can easily create instance of NetmeraAndroidPush object with push message and its device groups
-
– sendNotificationWithError:Sends notification to Android devices.
-
– sendNotificationInBackgroundSends notification to Android devices in the background thread.
-
– sendNotificationInBackgroundWithBlock:Sends notification to Android devices in the background thread.
-
– sendNotificationInBackgroundWithTarget:selector:Sends notification to Android devices in the background thread.
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 *)deviceGroupsParameters
- 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.hsendNotificationInBackground
Sends notification to Android devices in the background thread.
- (void)sendNotificationInBackgroundDiscussion
Sends notification to Android devices in the background thread.
Declared In
NetmeraAndroidPush.hsendNotificationInBackgroundWithBlock:
Sends notification to Android devices in the background thread.
- (void)sendNotificationInBackgroundWithBlock:(void ( ^ ) ( NSError *error , NetmeraPushInfo *pushInfo ))blockParameters
- 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.hsendNotificationInBackgroundWithTarget:selector:
Sends notification to Android devices in the background thread.
- (void)sendNotificationInBackgroundWithTarget:(id)target selector:(SEL)selectorParameters
- 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.hsendNotificationWithError:
Sends notification to Android devices.
- (NetmeraPushInfo *)sendNotificationWithError:(NSError **)errorParameters
- 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