Base #

Read more about the Base system in Hiro here.

Rate app #

Send feedback to the game’s developers over email.

1
2
3
4
5
const request = new RateAppRequest();
request.score = 9;
request.message = "It's a great game, love it!";

await HiroClient.baseRateApp(session, request);

Set device prefs #

Update or create the mobile push device tokens and preferences for the player.

1
2
3
4
5
6
7
8
9
const request = new DevicePrefsRequest();
request.device_id = "device_id";
request.push_token_android = "android_push_token";
request.push_token_ios = "ios_push_token";
request.preferences = {
    "dark_mode": true
};

await hiroClient.baseSetDevicePrefs(session, request);