NetmeraIOSPush Class Reference
| 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
-
– initWithMessage:withDeviceGroups:Constractor method that you can easily create instance of NetmeraIOSPush object with push message and its device groups
-
– sendNotificationWithError:Sends notification to IOs devices.
-
– sendNotificationInBackgroundSends notification to IOs devices in the background thread.
-
– sendNotificationInBackgroundWithBlock:Sends notification to IOs devices in the background thread.
-
– sendNotificationInBackgroundWithTarget:selector:Sends notification to IOs devices in the background thread.
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 *)deviceGroupsParameters
- 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.hsendNotificationInBackground
Sends notification to IOs devices in the background thread.
- (void)sendNotificationInBackgroundDiscussion
Sends notification to IOs devices in the background thread.
Declared In
NetmeraIOSPush.hsendNotificationInBackgroundWithBlock:
Sends notification to IOs 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 IOs devices in the background thread.
Declared In
NetmeraIOSPush.hsendNotificationInBackgroundWithTarget:selector:
Sends notification to IOs 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 IOs devices in the background thread.
Declared In
NetmeraIOSPush.hsendNotificationWithError:
Sends notification to IOs 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 IOs devices.
Declared In
NetmeraIOSPush.h