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
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.The app’s
id: its package name on Android, its bundle identifier on iPhone.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.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
One Result per phone, in the order of
phoneIds. With observe, each successful result also has:ok: true means the app is in the foreground on that phone.