Endpoint

Overview

Opens the app and brings it to the front, as if its icon had been tapped. If the app is already running, it is brought to the front in the state it was left in. The request returns once the app is in the foreground. 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.
boolean
default:"false"
Answer once the app is in the foreground, or timedOut when it is not by waitSeconds. An iPhone cannot tell its foreground app: there wait waits until the screen stops changing, and foregroundApp is null.
number
default:"20"
With wait: the longest to wait, from 1 to 60 seconds.
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 in the foreground on that phone.

Phone Errors