VibeView supports tvOS (Apple TV), Android TV and Roku (see Roku) on the Devices page and for test runs. TV apps use focus instead of touch: you move focus with a d-pad, and actions apply to whichever element holds focus. The AI and replayed tests both work this way.
Supported device groups
The device list on the Devices page lists TV devices under headings for the TV platforms available to your organization:
- Apple TV — tvOS simulators (for example Apple TV 4K).
- Android TV — Android TV emulators.
- Roku — physical Roku devices.
The models and OS versions depend on what is online at the time; there is no fixed catalog.
Samsung and LG TVs
Samsung TV (Tizen) and LG TV (webOS) sessions and automated tests are available on Team and higher plans, subject to device availability. Free and Solo users can see and select these TVs, but must upgrade to start a session or run tests; purchased usage credit alone does not unlock them.
Upload your Samsung .wgt or LG .ipk app and select it before starting. These sessions stay confined to that app. Available TVs appear under Samsung TV and LG TV in the Devices list. See Samsung and LG TV for what a package must hold. LG apps whose start page is a web address are not supported: package the app’s pages in the .ipk.
The stream shows your app only: videos show black, the TV’s own menus and dialogs do not appear, and there is no sound for now. If the app leaves the front (for example when Back closes it), the stream shows an “App not in front” message until it returns.
You can also build these apps in the cloud, on the same plans: vibeview build --cloud --platform tizen (Samsung TV) or --platform webos (LG TV) packages your app’s folder into a .wgt or .ipk and adds it to the app’s Build history. See Samsung and LG TVs in Cloud Builds.
The Network tab lists the requests your app’s page makes, live and in test runs, with no change to the TV or the app. See Samsung and LG TVs in Network logs for what is and isn’t captured.
Launching a TV session
- Open Devices.
- In the list of devices (press the device’s name above the stage if it is closed), scroll to the Apple TV or Android TV heading and pick a device.
- Click Start session.
The session boots like a phone or tablet session. You can install an app from your organization’s library the same way you would on a phone.
Navigating with the d-pad
Tapping the stream does nothing on a TV session. Use the keyboard instead:
| Keyboard | D-pad action |
|---|---|
| Arrow Up | DPAD_UP |
| Arrow Down | DPAD_DOWN |
| Arrow Left | DPAD_LEFT |
| Arrow Right | DPAD_RIGHT |
| Enter | DPAD_CENTER (select) |
| Escape | BACK |
Other keys work as on a phone session: printable characters are typed into the focused field and Backspace deletes, so apps with their own key handling (a search box, a shortcut, a game) receive them. Modifier chords such as Cmd+R or Ctrl+C are never sent, so browser shortcuts keep working. While you type in one of the page’s own fields, keys stay on the page.
On Apple TV running tvOS 18.2, 26.0, 26.4, 26.5 or 27.0, apps that read the keyboard themselves (such as sign-in screens that draw their own on-screen keyboard) receive your keys as from a hardware keyboard, and replayed tests and the AI type the same way. On other Apple TV versions keys reach text fields, but an app that reads a hardware keyboard directly does not see them.
Focus model
A d-pad direction press moves focus; DPAD_CENTER activates whatever is focused. VibeView shows focus in two places:
- UI tree — focused elements are marked
[focused]in the tree the AI sees. On Android TV and Roku, elements that can take focus are also markedfocusable, both there and in theui-treean agent reads through agent control. The Apple TV tree has nofocusablemark; use[focused]and the element types (buttons, cells). When focus sits on an unlabelled container, such as the frame around a tile, the first labelled element inside it is marked[focused]. - Learned paths — a d-pad press saved in a learned path usually remembers the element that had focus, so replay can confirm the intended target instead of only replaying key codes. A press saved without one (its focus could not be read) replays as the plain key.
AI tools on TV sessions
On a TV session the AI’s tools change to match the platform:
| Tools | On TV |
|---|---|
tap, tap_and_type, tap_coordinates, swipe, scroll_until_visible, gesture_preset, alert, long_press, select_picker_value, drag, keys, rotate, shake, set_location | Removed |
press_button | d-pad and back: dpad_up, dpad_down, dpad_left, dpad_right, dpad_center, back. home is accepted on Apple TV and Android TV, and the AI is told to use it only when a step requires leaving the app. On Roku also play, rewind, forward, replay, info and backspace, and no home |
type_text, clear_text, wait, locate, assert_visible, assert_not_visible, assert_value, find_element, step_complete, step_failed | Same as on mobile. Roku has no clear_text and no open_url |
tap_focused_tv(ref) | Every TV platform: moves focus to the element and presses SELECT in one call |
focus_element_tv(ref) | Every TV platform: moves focus to the element without pressing SELECT |
type_on_screen_keyboard(text) | Apple TV only: types into an on-screen keyboard the app draws itself |
How the two focus tools reach an element:
- Apple TV: the platform’s built-in focus navigation.
- Android TV: VibeView moves focus to the element and checks that it arrived. If it can’t be reached, the tool stops and says so. This needs an app that exposes focus to Android’s accessibility layer (see Limitations).
- Roku: focus moves to the element, reaching list tiles by their title, and the tool reports when the channel’s focus can’t be seen.
type_on_screen_keyboard is for apps that draw a grid of letter keys with no text field behind it, as many TV login and search screens do. It moves focus to each character’s key and selects it, and presses only keys of the keyboard that has focus, so open and focus the keyboard first. Test data works as with type_text: the AI sees only {{key}}. It switches letter case itself; when a character is on another keyboard page (numbers or symbols), it stops and the AI switches the page and continues. A step typed in one call is saved as a learned path; a step that needed a page switch stays with the AI.
Focus-verified replay
When a saved d-pad press carries a focused element, replay moves focus to that element and checks it landed there before continuing. So replay survives layout changes: if a row or tile was added or removed since the path was learned, it still reaches the intended element.
If replay can’t confirm that focus reached the saved element, it either sends the saved key and marks the step unverified, with the reason, or stops and, in a Smart run, hands the step to the AI from where focus is. A press saved without an element replays as the plain key. This works the same on every TV platform.
After each remote press, replay waits up to a couple of seconds for focus to settle, so a test doesn’t race ahead of your app.
For a worked example of a coding agent building a react-native-tvos app, running focus assertions on a cloud Apple TV and Android TV and submitting it to both stores, read AI agent ships an Apple TV and Android TV app in 46 minutes, or clone the Marquee sample app.
Apple TV specifics
- A fresh Apple TV device has Settings only: Apple’s tvOS simulator has no App Store, browser or TV app. Upload your own tvOS build and start the session from it (see Preparing Your App Build: tvOS).
- On tvOS 18 and later you can hear the app’s audio: turn it on from the Audio section of the Device tab (see Device audio).
- When VibeView opens a link into your app (an AI step or
open-url), tvOS asks “Open in “App”?”. VibeView answers Open when the prompt names your app, and leaves a prompt for any other app on screen. - tvOS prompts (that confirmation, permission alerts) appear in the UI tree as an
Alertwith their buttons;alert getandalert accept --button <label>read and answer them from the CLI or MCP. - After
press home, the tree describes the tvOS home screen. Focus actions (focus,tap-focused) and typing work there and in Settings too, and a session started without an app has a UI tree of the home screen.
Android TV specifics
- The device has internet access, but the bundled Google apps (YouTube, YouTube Music, Play Games) only work on Play-certified hardware and are hidden. Your own app connects normally.
- Android TV devices are a mix of 32-bit x86 and x86_64: a TV APK with native code should include both (see Preparing Your App Build: Android TV). Uploads warn when one is missing.
- The UI tree keeps the
focusedandselectedattributes on every element, so the AI can see which row or tile holds focus. typeworks on a text field you have only focused: VibeView opens its on-screen keyboard first, so there’s no need to pressdpad_centerbefore typing.
Fire TV (Fire OS) apps
Fire TV apps built on Fire OS are Android apps, so you test them as Android TV apps: upload your Fire TV .apk the same way. VibeView treats an APK as a TV app when its manifest requires the amazon.hardware.fire_tv feature (the default when android:required is left out), even without Android TV’s Leanback feature. With the feature optional (android:required="false"), it is a TV app when it also has a TV launcher activity (LEANBACK_LAUNCHER). Live sessions, AI tests and learned replay, test groups, embeds and share links all work.
Fire TV apps run on Android TV emulators, so:
- The device identifies itself as Android TV, not Fire TV, and an app that checks for Fire TV takes its Android TV code path.
- Amazon services (Appstore, in-app purchasing, Amazon Device Messaging, Login with Amazon, Alexa) are not available.
- The remote is the standard d-pad remote.
To publish a Fire TV app, submit your Android TV production build to the Amazon Appstore — see Amazon Appstore.
Fire TV apps built for Vega OS are not supported.
Roku
Roku devices appear under their own heading in the device list, and a Roku session streams a physical Roku live to your browser.
The remote works with the same keys as the other TV platforms: arrows move, Enter is OK, Escape is back. When a Roku on-screen keyboard is focused, printable keys go straight to it (Backspace deletes).
The UI Tree Inspector works on Roku; element positions in the tree are approximate. You can hear the channel’s audio (see Device audio).
Roku sessions are confined to the app under test: home and system navigation are blocked, and if the device leaves the app, VibeView brings it back. A Roku exits the channel on an unhandled Back on its first screen, so you’ll see the channel restart there a couple of seconds later. That is VibeView relaunching it, not a crash, and what the channel wrote to the registry is still there.
Every Roku session starts from an app
You can’t open a Roku on its own: pick the app you want to test and start the session from it. Upload your channel as a .zip on the Apps page like any other app.
Your channel is installed at the start of each session, so it appears a few seconds after the stream. A test you opened with Replay (or from a group) waits for the channel to be up before it runs. If the channel can’t be installed (a rejected package, say), the session tells you so.
Each session starts clean
Your channel is removed when the session ends and installed fresh for the next one. Anything it stored — signed-in accounts, preferences, cached data — is gone, so every session starts from a first launch. If your channel needs an account, sign in during each session or supply credentials with launch parameters.
Sharing and embedding
Roku channels can be shared with a link and embedded in your own pages, like apps on the other platforms. Use them for review within your team and with your clients, not on public pages. Each visitor gets a fresh copy of your channel, and their player shows Opening app… until it is open. Visitors stay inside your channel.
Test runs
Test runs work on Roku as on the other TV platforms. A press in a learned path remembers the focused element when the channel reports one, and replay moves focus to it, so a test keeps working when a row gains or loses an item.
Some channels draw their own focus highlight without telling the device which item is selected. There, replay presses the saved keys in order and marks the step as replayed by key presses; Smart runs still check the screen after each step and hand over to AI if it does not match. To fix that, build your channel with the VibeView Roku plugin: VibeView then sees your highlight and each item gets a stable id.
The start state applies on Roku too. Restart the app restarts your channel and keeps what it stored. Clean app data and Fresh install both remove the channel and install it again, because a Roku keeps a channel’s saved data for as long as it is installed.
Link your Apple TV, Android TV and Roku apps as one product on the app page (see Same app on other platforms) so their tests are listed together. VibeView suggests a Roku channel only when its name matches; otherwise link it by hand. A TV test never runs on a phone or tablet app.
Channel logs
The Logs tab of the Devices tools panel, vibeview logs and the agent logs tool show your channel’s console output on Roku: everything it prints, the markers around each install, why it exited, and any runtime error with its backtrace. A channel that stops on a runtime error is started again, and the error stays in the log.
| Message | What to do |
|---|---|
log reconnected -- channel output printed while the connection was down was not captured | Nothing: the log carries on. What the channel printed during the gap is not recovered. |
channel output is not being captured | Start a new session to resume logging; restarting or reinstalling the channel does not restore it. |
Reloading a channel while you develop
vibeview dev --platform roku opens a live Roku session in your browser and lets you re-package, upload and reload the running channel from your terminal as you change it. See Roku under the dev command in the CLI reference, including the auto-reload --watch option.
Debugging a channel in VS Code
You can debug your channel on a live VibeView Roku with the BrightScript Language extension for VS Code, as on a Roku on your desk. A Roku session in VibeView shows a Debug this channel in VS Code note that links here. In your channel project, run:
vibeview dev --roku-debug
- The command adds a VibeView: debug on Roku configuration to
.vscode/launch.json, copying the build settings of your existing BrightScript configuration (such asrootDir,filesandbsConfig). Your own configurations stay as they are. - It starts your Roku session, prints the link to watch it, and keeps running. Nothing is installed yet: the session page says Waiting for the debugger — start debugging in VS Code.
- In VS Code, start debugging with the VibeView: debug on Roku configuration. The extension packages your channel, installs it and attaches. The stream stays frozen where the debugger stops the channel.
What works: breakpoints, pause, continue and stepping, with variables and expressions; runtime errors stop in VS Code with the stack; Restart (Cmd+Shift+F5 on macOS) installs again and re-attaches; print output in the Debug Console, and the Logs tab and vibeview logs keep working.
What doesn’t: the extension’s SceneGraph debug commands (such as rendezvous tracking), Telnet-mode debugging, and keys or Home sent from the extension (the session stays inside your channel).
Good to know:
- Each start or restart uploads your package as a build. If the project has no VibeView app yet, the first start creates it.
- There is no auto-reload in this mode: start, restart and stop from VS Code.
- Ports 8060, 80, 9801, 9803 and 9805 must be free on your computer, because the extension looks for a Roku there; the command tells you if one is taken. On Linux, or when another program uses port 80, the extension fails at its password check.
- Stopping the debugger closes the channel; VibeView relaunches it, and it runs normally again after about 35 seconds.
- While the channel is stopped at a breakpoint or an error, the session counts as in use for up to 30 minutes, so the idle timeout doesn’t end it while you read the stack.
vibeview dev-stopends it andvibeview dev-statuschecks on it. Running the command again prints the running session’s link. It won’t start while a regularvibeview devsession runs for the project.
Limitations
- On Android TV,
tap_focused_tv,focus_element_tvand focus-verified replay need the app to expose focus to Android’s accessibility layer (react-native-tvos or Leanback native-focus apps). Apps that track focus only in their own JavaScript fall back to plainpress_button(dpad_*)navigation, and steps are marked unverified. This is how the app is built, not a bug. - On Roku, the focus tools reach list tiles by their title. On screens where the channel draws its own highlight without moving the device’s focus, they can’t see which item is selected and say so.
- Touch input on the stream is disabled on TV sessions. Use the keyboard.
- The TV models offered depend on what is online; there is no fixed catalog.
Running TV tests from the CLI
The CLI run commands pick a TV device on their own for a test or group whose app is an Apple TV or Android TV app. --device-category tv asks for one explicitly (CLI 0.28.0 and earlier sent phone when you left it out, so pass it with those versions). The platform still comes from the test’s app; --device-category only selects the form factor.
vibeview run-test test-789 --device-category tv
vibeview run-checks --app app-123 --device-category tv
If no TV device is free, the run queues until one is. To pin a run to one device, find its device_id with vibeview list-devices --category tv:
vibeview run-test test-789 --device atv-01
--device overrides --device-category; the two cannot be combined.
Running a TV test on the other TV platform
A TV test made for Apple TV can run on Android TV, and the other way round, as phone tests run on iOS and Android. There is no special flag: the run’s platform comes from the app or session you point it at. Pick that platform’s device in the Run dialog, or use --platform on vibeview run-test / run-checks or the platform field of the CI run API; VibeView finds your app on the other platform by its bundle id or package name.
A learned path belongs to the platform it was learned on, so the first run on the other platform uses the AI, and a passing run saves that platform’s own paths. Shared ids help both the AI and replay: a react-native-tvos testID becomes the iOS accessibilityIdentifier and the Android resource-id. On Android TV, an app whose focus Android’s accessibility layer can’t see replays unverified whatever its ids (see Limitations).
See also
- AI testing — general AI-driven test behavior, tool list, and AI use.
- Devices — session basics and device selection.
- CLI — full CLI reference including
--device-category.