HIVE SDK for Unity3D

Classes | Functions
Push

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

Classes

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

Functions

delegate void hive.Push.onRemotePush (ResultAPI result, RemotePush remotePush)
 Returns information of receiving the remote push.
 
delegate void hive.Push.onLocalPush (ResultAPI result, LocalPush localPush)
 Returns information of receiving the local push.
 
delegate void hive.Push.onPushSetting (ResultAPI result, PushSetting pushSetting)
 Returns the result of push settings on the activated app.
 
static void hive.Push.getRemotePush (onRemotePush listener)
 Request the status of receiving push notification.
 
static void hive.Push.setRemotePush (RemotePush remotePush, onRemotePush listener)
 Set the status of receiving push notification.
 
static void hive.Push.registerLocalPush (LocalPush localPush, onLocalPush listener)
 Register Local push notification.
 
static void hive.Push.unregisterLocalPush (int noticeID)
 Unregister Local push notification.
 
static void hive.Push.unregisterLocalPushes (List< int > noticeIDs)
 Unregister Local push notification.
 
static void hive.Push.unregisterAllLocalPushes ()
 Unregister All local pushes including Hive local pushes.
 
static void hive.Push.setForegroundPush (PushSetting setting, onPushSetting listener)
 Set the value whether to enable push notification or not on the activated app.
 
static void hive.Push.getForegroundPush (onPushSetting listener)
 Get the value whether to enable push notification or not on the activated app.
 
static void hive.Push.requestPushPermission ()
 Request Push Token.
 

Detailed Description

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


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.

Function Documentation

◆ getForegroundPush()

static void hive.Push.getForegroundPush ( onPushSetting listener)
static

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

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

◆ getRemotePush()

static void hive.Push.getRemotePush ( onRemotePush listener)
static

Request the status of receiving push notification.

Parameters
listenerAPI call result

◆ onLocalPush()

delegate void hive.Push.onLocalPush ( ResultAPI result,
LocalPush localPush )

Returns information of receiving the local push.

Parameters
resultAPI call result
localPushLocal push registration information.

◆ onPushSetting()

delegate void hive.Push.onPushSetting ( ResultAPI result,
PushSetting pushSetting )

Returns the result of push settings on the activated app.

Parameters
resultAPI call result
pushSettingPush settings information

◆ onRemotePush()

delegate void hive.Push.onRemotePush ( ResultAPI result,
RemotePush remotePush )

Returns information of receiving the remote push.

Parameters
resultAPI call result
remotePushThe status of receiving push notification

◆ registerLocalPush()

static void hive.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

◆ setForegroundPush()

static void hive.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.

◆ setRemotePush()

static void hive.Push.setRemotePush ( RemotePush remotePush,
onRemotePush listener )
static

Set the status of receiving push notification.

Parameters
remotePushRemote push information.
listenerAPI call result

◆ unregisterLocalPush()

static void hive.Push.unregisterLocalPush ( int noticeID)
static

Unregister Local push notification.

Parameters
noticeIDLocal push registration ID.

◆ unregisterLocalPushes()

static void hive.Push.unregisterLocalPushes ( List< 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