Skip to content

Send Broadcast

Send a broadcast intent to trigger broadcast receivers on the device.

ParameterTypeRequiredDefaultDescription
actionstringYesBroadcast action (e.g., com.example.MY_ACTION)
componentstringNoTarget component for explicit broadcast
extrasobjectNoString extras as key-value pairs
deviceIdstringNoTarget device serial

Send broadcast com.example.REFRESH on my device

Send broadcast com.example.CONFIG_UPDATE with extras version=2

Send broadcast com.example.NOTIFY to component com.example.myapp/.MyReceiver