26#ifndef __HIVE_PUSH_H__
27#define __HIVE_PUSH_H__
55class HIVESDK_DLLEXPORT
Push
227 static void executeEngine(picojson::value jsonParam);
252 RemotePush(
bool isAgreeNotice,
bool isAgreeNight);
256 picojson::object toJson()
const;
258 std::string toString()
const;
299 std::string broadcastAction;
302 std::string bigpicture;
303 std::string icon_color;
308 LocalPush(
int noticeID, std::string title, std::string msg,
long after);
312 picojson::object toJson()
const;
314 std::string toString()
const;
334 PushSetting(
bool useForegroundRemotePush,
bool useForegroundLocalPush);
338 picojson::object toJson()
const;
340 std::string toString()
const;
Local push registration information.
Definition: HIVE_Push.h:270
long after
Notification timer.
Definition: HIVE_Push.h:279
std::string icon
Push icon.
Definition: HIVE_Push.h:293
std::string title
Local push title.
Definition: HIVE_Push.h:275
std::string active
Action to take.
Definition: HIVE_Push.h:297
std::string ticker
Message Ticker.
Definition: HIVE_Push.h:289
std::string sound
Notification sound.
Definition: HIVE_Push.h:295
std::string msg
Local push message.
Definition: HIVE_Push.h:277
std::string groupId
Notification Group ID.
Definition: HIVE_Push.h:281
int noticeId
Local push notification ID.
Definition: HIVE_Push.h:273
std::string type
Notification type (bar, popup, toast etc.)
Definition: HIVE_Push.h:291
std::string bigmsg
Big-text.
Definition: HIVE_Push.h:287
In mobile games, push notification service provides an important method to increase the retention of ...
Definition: HIVE_Push.h:56
Push setting information.
Definition: HIVE_Push.h:326
bool useForegroundLocalPush
Whether to enable local notification on the activated app.
Definition: HIVE_Push.h:330
bool useForegroundRemotePush
Whether to enable remote notification or not on the activated app.
Definition: HIVE_Push.h:329
Information about the status of receiving push notification.
Definition: HIVE_Push.h:241
bool isAgreeNotice
Whether to receive announcement notification or not.
Definition: HIVE_Push.h:245
bool isAgreeNight
Whether to receive night-time notification or not.
Definition: HIVE_Push.h:247
Definition: HIVE_ResultAPI.h:63
static void setRemotePush(RemotePush remotePush, onRemotePush listener)
Set the status of receiving push notification.
std::function< void(ResultAPI const &result, PushSetting const &pushSetting)> onPushSetting
Returns the result of push settings on the activated app.
Definition: HIVE_Push.h:103
static void getRemotePush(onRemotePush listener)
Request the status of receiving push notification.
static void unregisterLocalPushes(std::vector< int > noticeIDs)
Unregister Local push notification.
static void unregisterLocalPush(int noticeId)
Unregister Local push notification.
static void unregisterAllLocalPushes()
Unregister All local pushes including Hive local pushes.
std::function< void(ResultAPI const &result, RemotePush const &remotePush)> onRemotePush
Returns information of receiving the remote push.
Definition: HIVE_Push.h:72
std::function< void(ResultAPI const &result, LocalPush const &localPush)> onLocalPush
Returns information of receiving the local push.
Definition: HIVE_Push.h:87
static void requestPushPermission()
Request Push Token.
static void registerLocalPush(LocalPush localPush, onLocalPush listener)
Register Local push notification.
static void getForegroundPush(onPushSetting listener)
Get the value whether to enable push notification or not on the activated app.
static void setForegroundPush(PushSetting setting, onPushSetting listener)
Set the value whether to enable push notification or not on the activated app.