HIVE SDK for C++

Classes | Typedefs | Functions
Push

In mobile games, push notification service provides an important method to increase the retention of game users. More...

Classes

class  Push
 In mobile games, push notification service provides an important method to increase the retention of game users. More...
 
class  RemotePush
 Information about the status of receiving push notification. More...
 
class  LocalPush
 Local push registration information. More...
 
class  PushSetting
 Push setting information. More...
 

Typedefs

typedef std::function< void(ResultAPI const &result, RemotePush const &remotePush)> Push::onRemotePush
 Returns information of receiving the remote push. More...
 
typedef std::function< void(ResultAPI const &result, LocalPush const &localPush)> Push::onLocalPush
 Returns information of receiving the local push. More...
 
typedef std::function< void(ResultAPI const &result, PushSetting const &pushSetting)> Push::onPushSetting
 Returns the result of push settings on the activated app. More...
 

Functions

static void Push::getRemotePush (onRemotePush listener)
 Request the status of receiving push notification. More...
 
static void Push::setRemotePush (RemotePush remotePush, onRemotePush listener)
 Set the status of receiving push notification. More...
 
static void Push::registerLocalPush (LocalPush localPush, onLocalPush listener)
 Register Local push notification. More...
 
static void Push::unregisterLocalPush (int noticeId)
 Unregister Local push notification. More...
 
static void Push::unregisterLocalPushes (std::vector< int > noticeIDs)
 Unregister Local push notification. More...
 
static void Push::unregisterAllLocalPushes ()
 Unregister All local pushes including Hive local pushes.
 
static void Push::setForegroundPush (PushSetting setting, onPushSetting listener)
 Set the value whether to enable push notification or not on the activated app. More...
 
static void Push::getForegroundPush (onPushSetting listener)
 Get the value whether to enable push notification or not on the activated app. More...
 
static void Push::requestPushPermission ()
 Request Push Token. More...
 

Detailed Description

In mobile games, push notification service provides an important method to increase the retention of game users.

Since
4.0.0 In mobile games, push notification service provides an important method to increase the retention of game users.
4.0.0


HIVE Push supports push notification for marketing to increase the user retention of mobile games.
HIVE Push also responds to Google's GCM, Apple's APNS, Amazon's ADM, Jpush in China with language-specific time zones to support global services.


HIVE Push supports push notification for marketing to increase the user retention of mobile games.
HIVE Push also responds to Google's GCM, Apple's APNS, Amazon's ADM, Jpush in China with language-specific time zones to support global services.

Typedef Documentation

◆ onLocalPush

typedef std::function<void(ResultAPI const & result, LocalPush const & localPush)> Push::onLocalPush

Returns information of receiving the local push.

Parameters
resultAPI call result
localPushLocal push registration information.

◆ onPushSetting

typedef std::function<void(ResultAPI const &result, PushSetting const &pushSetting)> Push::onPushSetting

Returns the result of push settings on the activated app.

Parameters
resultAPI call result
pushSettingPush settings information

◆ onRemotePush

typedef std::function<void(ResultAPI const & result, RemotePush const & remotePush)> Push::onRemotePush

Returns information of receiving the remote push.

Parameters
resultAPI call result
remotePushThe status of receiving push notification

Function Documentation

◆ getForegroundPush()

static void Push::getForegroundPush ( onPushSetting  listener)
static

Get the value whether to enable push notification or not on the activated app.

Parameters
listenerAPI call result

◆ getRemotePush()

static void Push::getRemotePush ( onRemotePush  listener)
static

Request the status of receiving push notification.

Parameters
listenerAPI call result

◆ registerLocalPush()

static void Push::registerLocalPush ( LocalPush  localPush,
onLocalPush  listener 
)
static

Register Local push notification.

In iOS, up to 64 can be registered due to the system limit.

Parameters
localPushLocal push registration information.
listenerAPI call result

◆ requestPushPermission()

static void Push::requestPushPermission ( )
static

Request Push Token.

◆ setForegroundPush()

static void Push::setForegroundPush ( PushSetting  setting,
onPushSetting  listener 
)
static

Set the value whether to enable push notification or not on the activated app.

Parameters
settingThe status of receiving push notification on the activated app.
listenerAPI call result

◆ setRemotePush()

static void Push::setRemotePush ( RemotePush  remotePush,
onRemotePush  listener 
)
static

Set the status of receiving push notification.

Parameters
remotePushRemote push information.
listenerAPI call result

◆ unregisterLocalPush()

static void Push::unregisterLocalPush ( int  noticeId)
static

Unregister Local push notification.

Parameters
noticeIDLocal push registration ID

◆ unregisterLocalPushes()

static void Push::unregisterLocalPushes ( std::vector< int >  noticeIDs)
static

Unregister Local push notification.

Parameters
noticeIDsArray of Local push registration ID
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy