Endpoint

Overview

Force-quits the app. The app’s data is kept; the next launch starts it fresh. Stopping an app that is not running does nothing and succeeds. Requires an active session on each phone. Platforms: Android, iPhone.

Request Body

string[]
required
The phones to act on.
string
One phone, instead of phoneIds. The answer’s data is then that phone’s result itself, not a list, and a failure on the phone is the request’s ok: false with the phone’s error (at the HTTP status of its code). Give phoneId or phoneIds, not both.
string
required
The app’s id: its package name on Android, its bundle identifier on iPhone.
object
Look at the screen after the action, in the same answer. The hub takes a frame before the action, does it, waits until the screen settles (two frames about 300 ms apart that look the same, for at most settleMs), and adds screen, effect and, when the action should have changed the screen and did not, warnings to the phone’s result. Costs one look at the screen plus the wait.

Response

boolean
true when the request was carried out. Check each result for how it went on that phone.
Result[]
One Result per phone, in the order of phoneIds. With observe, each successful result also has:
A result with ok: true means the app is not running on that phone.

Phone Errors