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
var request = Hiro.RateAppRequest.new()
request.score = 9
request.message = "It's a great game, love it!"

await hiro.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
var request = Hiro.DevicePrefsRequest.new()
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 hiro.baseSetDevicePrefs(session, request)