Hive provides functions to send Remote Push, to search and change Push Settings. What game developers should do is to create the setting UI for user to opt in or out of Push Services.

Sending Remote Push

Remote Push is sent in two ways; by Hive Console, and by calling API from Game Server to Hive Server. Therefore, there is nothing you need to do on the game client to send or receive Remote Push.
For more details, click the link below.

Searching Push Settings

Hive defines RemotePush class with the following contents about the user’s Remote Push configuration status.

Name Type Description
isAgreeNotice Boolean It describes the activation status of Announcement Notification which user set

  • true: Users opted in Announcement Notification
  • false: Users opted out of Announcement Notification
  • No installation history existed: true
  • If no value from the server : true
isAgreeNight Boolean It describes the activation status of Night-time Notification which user set

  • true: Users opted in Night-time Notification
  • false: Users opted out of Night-time Notification
  • No installation history existed: Korea; false, Countries except Korea; true
  • If no value from the server: false

To search information about Remote Push status of the user stored in the Hive server, call getRemotePush() method of Push class, and check RemotePush object returned as a result of the search.
Followings are sample codes to search the settings for Remote Push.

Unity®

API Reference: hive.Push.getRemotePush

C++

API Reference: Push::getRemotePush

Kotlin

API Reference: Push.getRemotePush

Java

API Reference: com.hive.Push.getRemotePush

Swift

API Reference: PushInterface .getRemotePush

Objective-C

API Reference: HIVEPush:getRemotePush

Changing Push Settings

If a user changes status of  Announcement Notification or Night-time Notification, you should send the updated data to Hive Server. To deliver the updated data to Hive Server, set the data to remotePush parameter (RemotePush object) to call setRemotePush() method of Push class, and then check the result with callback function.
Followings are sample codes to change push settings for advertisement.

Unity®

API Reference: hive.Push.setRemotePush

C++

API Reference: Push::setRemotePush

Kotlin

API Reference: Push.setRemotePush

Java

API Reference: com.hive.Push.setRemotePush

Swift

API Reference: PushInterface.setRemotePush

Objective-C

API Reference: HIVEPush:setRemotePush