Skip to content

Reference

device_reset_state

Reset permissions/storage and relaunch the authority-bound app on its exact claimed device, then reconnect and re-prove the session target.

NameTypeRequiredDefaultConstraintsDescription
appIdunknownNoAuthority-bound app identifier; normally injected by the session
platformunknownNoAuthority-bound platform; conflicting values are refused
deviceIdunknownNoAuthority-bound exact device identifier; normally injected by the session
permissionsunknownNo
storageKeysunknownNo
mmkvInstanceIdunknownNoForwarded to cdp_mmkv. Defaults to mmkv.default.
relaunchbooleanNoLaunch the app after terminate. Default true.
waitForReadyunknownNo
waitForNavReadyunknownNo
device_reset_state()