How to use Notification¶
In mobile games, Push Notifications are an important means to maintain and increase user retention. Hive SDK provides Push Notification Services to notify news in diverse ways to users. Not only provides advertisement push notification for marketing to increase retention of game, and also supports Google's FCM and Apple's APNS. Language-specific and timezone-specific settings are available to support global services as well.
Warning
According to regulatory change in Act on Promotion of Information and Communication Network Utilization and information Protection, etc., your game should provide users authorities to opt in or out of push notifications by contents type of notification. Therefore, read the following settings guide that Hive SDK provides and build your games based on the guide.
Push type¶
Remote push¶
Remote Push is a push sent to the user's device through Hive Console or game server using Hive Server API. There is nothing to implement in your game to receive Remote Push. However, you should call Hive API to check and change the push settings when users intend to see or change settings of Remote Push. View details
Local push¶
Local Push is a push sent by Game Client directly to users using Hive API in the game, You can register and release local push using Hive API, and customize push UI for Android devices. View details
Note
If you set target = 21 for featuring in Google Play Store, please add Notification Icon to prevent the push icon from appearing in white on Android 5.0 or higher devices. To to this, add an icon file on /res/drawable/ folder with the name of ic_c2s_notification_small_icon.png. DPI size of icon is as follows;
- mdpi: 24x24
- hdpi: 36x36
- xhdpi: 48x48
- xxhdpi: 72x72
- xxxhdpi: 96x96