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: $"}"
# List every registered provider adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND "help" # List the commands one provider offers adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND "users.help"
<provider>.help. A command with no . in it routes to the common provider, so help and common.help reach the same place.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\"}]}'"
group_presence.get appears in command help, but use group_presence.group_presence_get with the currently released simulator.# Get the default local test-data user's group presence adb shell am broadcast -n horizon.platform.spatialsim/.CommandReceiver --es COMMAND "group_presence.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.group_presence_get" --es PARAMS "084275158957381"
| Field Name | Field Type | Required |
|---|---|---|
id | string | Yes |
display_name | string | No |
alias | string | No |
managed_info | ManagedInfo | 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” / “UNKNOWN” | No |
profile_url | string | 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 |
content_rating | ContentRating | 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