Inherits from NSObject
Declared in Netmera.h
NetmeraPushService.m

Overview

This is the main class to manage push notifications in Netmera. With the help of this class, you can register/unregister devices to get notification.

Tasks

Class Methods

registerInBackgroundWithToken:

Registers the device into to the server in the background thread and not callback any

+ (void)registerInBackgroundWithToken:(NSString *)token

Parameters

token

application’s deviceToken

Discussion

Registers the device into to the server in the background thread and not callback any

Declared In

Netmera.h

registerInBackgroundWithToken:withBlock:

Unregisters device in the background thread

+ (void)registerInBackgroundWithToken:(NSString *)token withBlock:(void ( ^ ) ( NSError *error ))block

Parameters

token

application’s deviceToken

block

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

Discussion

Unregisters device in the background thread

Declared In

Netmera.h

registerWithToken:

Registers the device into to the server.

+ (void)registerWithToken:(NSString *)token

Parameters

token

application’s deviceToken

Discussion

Registers the device into to the server.

Declared In

Netmera.h

unRegisterInBackgroundWithToken:

Unregisters device in the background thread and not callback any

+ (void)unRegisterInBackgroundWithToken:(NSString *)token

Parameters

token

application’s deviceToken

Discussion

Unregisters device in the background thread and not callback any

Declared In

Netmera.h

unRegisterInBackgroundWithToken:withBlock:

Unregisters device in the background thread

+ (void)unRegisterInBackgroundWithToken:(NSString *)token withBlock:(void ( ^ ) ( NSError *error ))block

Parameters

token

application’s deviceToken

block

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

Discussion

Unregisters device in the background thread

Declared In

Netmera.h

unRegisterWithToken:

Unregisters device.

+ (void)unRegisterWithToken:(NSString *)token

Parameters

token

application’s deviceToken

Discussion

Unregisters device.

Declared In

Netmera.h