adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND "<COMMAND_NAME>" --es PARAMS '<COMMAND_PARAMS>'
PARAMS='{"sku": "<SKU>", "price":{"amount_in_hundredths": 350, "currency": "USD", "formatted": "$3.50"}, "name": "my_product", "type": "CONSUMABLE"}'
adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver \
--es COMMAND "iap.create_product" --es PARAMS '$PARAMS'
Broadcast completed: result=0, data="{"message":"Product created with sku: 123456789"}"
Broadcast completed: result=0, data="{"error":"Failed to decode product: Field 'sku' is required for type with serial name 'horizon.platform.service.iap.transport.v1.Product', but it was missing at path: $"}"
adb shell "am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND \"common.reset_data\""
adb shell "am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND \"group_presence.join_intent_received\" --es PARAMS '{\"deeplink_message\":\"destination3_deeplink_message\",\"destination_api_name\":\"destination3\",\"lobby_session_id\":\"7a8b-zv73\",\"match_session_id\":\"123\"}'"
adb shell "am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND \"application_lifecycle.launch_intent_changed\" --es PARAMS '{\"deeplink_message\":\"horizon://worlds/10235735230144318\",\"destination_api_name\":\"world_name\",\"launch_source\":\"DIRECT_DESTINATION\",\"type\":\"DEEPLINK\",\"tracking_id\":\"1010\",\"users\":[{\"id\":\"121212\",\"display_name\":\"Bobby\"}]}'"
# Get the logged in user group presence adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND "group_presence.get" # Get the group presence for a specific user ID adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND "group_presence.get" --es PARAMS "084275158957381"
| Field Name | Field Type | Required |
|---|---|---|
id | string | Yes |
api_name | string | Yes |
PARAMS='{"id": "<LEADERBOARD_ID>", "api_name": "<LEADERBOARD_NAME>"}'
adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver \
--es COMMAND "leaderboards.create_leaderboard" --es PARAMS '$PARAMS'
| Field Name | Field Type | Required |
|---|---|---|
id | string | Yes |
display_name | string | No |
alias | string | No |
presence | string | No |
presence_deeplink_message | string | No |
presence_destination_api_name | string | No |
presence_lobby_session_id | string | No |
presence_match_session_id | string | No |
presence_status | “ONLINE” / “OFFLINE” | No |
profile_url_small | string | No |
adb shell "am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND \"users.create_user\" --es PARAMS '{\"id\":\"<USER_ID>\"}'"
| Field Name | Field Type | Required |
|---|---|---|
sku | string | Yes |
type | “DURABLE”, “CONSUMABLE”, “SUBSCRIPTION” | Yes |
name | string | Yes |
price | Price | Yes |
cover_url | string | No |
description | string | No |
icon_url | string | No |
short_description | string | No |
billing_plans | BillingPlan[] | No |
| Field Name | Field Type | Required |
|---|---|---|
amount_in_hundredths | Long | Yes |
currency | string | Yes |
formatted | string | Yes |
PARAMS='{"sku": "<SKU>", "price":{"amount_in_hundredths": 350, "currency": "USD", "formatted": "$3.50"}, "name": "my_product", "type": "CONSUMABLE"}'
adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver \
--es COMMAND "iap.create_product" --es PARAMS '$PARAMS'
adb shell "am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND \"users.block_user\" --es PARAMS '<USER_ID>'"
adb shell "am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND \"users.unblock_user\" --es PARAMS '<USER_ID>'"
adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND "common.all_change_page_size_limit" --es PARAMS 10
adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND "application.invite_accept" --es PARAMS '<application_invite_id>'
adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND "application.invite_decline" --es PARAMS '<application_invite_id>'