Tests an IWSDK WebXR app on a physical Meta Quest in Quest Browser: developer mode and adb checks, the dev server over Wi-Fi or USB (`adb reverse`) and its certificate, the production build over HTTPS for benchmarks, getting results off the headset, remote DevTools via chrome://inspect, metavr logs and screenshots, the real frame rate, OVR Metrics, a headset-only checklist, and Meta VR Glasses prep on a Quest 3/3S (head-gaze preview, `metavr device fov-sim`, hands-only run). Use when the user says "test on my Quest", "open it in the headset", "Enter VR button missing", "works in the emulator but not on the Quest", "test the production build on the Quest", "save results from the headset", "kicked out of VR when I save", "inspect Quest Browser", "remote debug", "adb reverse", "headset logs", "what FPS is it running at", "test for Meta VR Glasses without the device", "simulate the glasses field of view", or before any store build. For scripted control of a real session, hand off to `iwsdk-native-xr-test`.
Ships in IWSDK Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Made by Navid Mirzaaghazadeh · part of iwsdk-webxr-skills · MIT
The emulator (IWER) proves the code paths. Only the headset proves input feel, comfort, text legibility, real frame rate, thermals and mixed-reality features. Do this early and after every feature, not just before release.
Related: scripted control of a real session → iwsdk-native-xr-test (official);
frame-time problems → iwsdk-performance; Quest CLI details → docs/metavr-cli-reference.md
in this library and the metavr-cli skill if installed.
adb devices lists several, ask which one and pass
-s <serial> to every adb command.adb reverse routes when done. Never automate permission dialogs in the headset; ask the
person wearing it.adb devices # want: <serial> device (not unauthorized/offline)
npm exec metavr -- device list # same via the project's metavr dev dependency
npx @iwsdk/cli dev up (or npm run dev) and read the URLs:
npx @iwsdk/cli dev status # data.runtimeUrls.local and data.runtimeUrls.network[]
Pick one route. IWER is not injected in Quest Browser (userAgentException defaults to
/OculusBrowser/), so the headset always uses its native WebXR.
| Route | Steps | When |
|---|---|---|
| A. Same Wi-Fi (IWSDK's recommended method) | Open a data.runtimeUrls.network URL, e.g. https://192.168.1.20:8081/, in Quest Browser | Home networks |
B. USB + adb reverse | adb -s <serial> reverse tcp:8081 tcp:8081, then open https://localhost:8081/ | Corporate/guest Wi-Fi, client isolation, firewalls |
| C. Chrome port forwarding | chrome://inspect/#devices → Port forwarding… → add the port | Same as B, from Chrome's UI |
dev status reports (scaffold default 8081).npm exec metavr -- device browser "https://localhost:8081/".world.xr.offer: "always": IWSDK calls
navigator.xr.offerSession(...) after start-up and again after each session ends, so Quest
Browser shows its own enter button; an app may also add its own.adb -s <serial> reverse --remove tcp:8081.USB (ADB) connection required.
chrome://inspect/#devices in desktop Chrome.Use Console for errors and your debug logs, Network for 404s, CORS failures and asset sizes, Performance for CPU traces (DevTools adds overhead; compare runs under the same conditions). Check the console first: type errors can stop a system from initialising without any visible symptom.
npm exec metavr -- log -n 200 -l W # recent device log, warnings and up
npm exec metavr -- capture screenshot -o artifacts/quest.png
adb -s <serial> logcat -d | tail -200 # raw logcat, if metavr isn't installed
metavr log is a shortcut for adb logcat with tag and level filters. Whether Quest Browser
mirrors page console.* output into logcat is unverified; rely on chrome://inspect for page
logs. metavr options: npm exec metavr -- <command> --help.
Recording logcat for a whole session (metavr 1.8, observed 2026-10-25 on a Quest 3S):
metavr adb logcat -f ... or metavr adb shell "logcat -T 1 ..." into a file on the
computer wrote nothing, even after minutes.metavr adb shell "nohup logcat -v time -f /sdcard/Download/session.log -r 8192 -n 2 VrApi:I AndroidRuntime:E '*:S' > /dev/null 2>&1 &",
then metavr adb pull /sdcard/Download/session.log when needed. The tested run also had a
Unity:V tag; add the tags your app logs under. VrApi gives the FPS= lines.metavr adb -- logcat ... is rejected ("unexpected argument"); write metavr adb logcat or
metavr adb shell "logcat ...".A launch that never happened (installed TWA or any APK; metavr 1.8, observed 2026-10-25):
metavr app launch <pkg> --cold-start --verify printed "Launched" and "no crash signal",
yet pidof <pkg> was empty. Horizon OS had held the launch back. Logcat said Launch is blocked because: a Reprojected OS dialog is currently showing. Caching launch, then Interstitial session (APP_RESUME) took more than 15s and appLaunchFailureBroadcastReceived.metavr adb shell "pidof <pkg>", or look for ForegroundAppHandler: Changing in focus immersive app ... to (<pkg>).Add a dev-only probe after World.create(...) resolves (remove it before release). frameRate,
supportedFrameRates and updateTargetFrameRate are WebXR APIs that Quest Browser 16.4+
supports; they may be missing from TypeScript's types, hence the cast.
import { VisibilityState } from '@iwsdk/core';
type RateSession = XRSession & {
frameRate?: number;
supportedFrameRates?: Float32Array;
updateTargetFrameRate?: (rate: number) => Promise<void>;
};
if (import.meta.env.DEV) {
world.visibilityState.subscribe((state) => {
if (state !== VisibilityState.Visible) return;
const s = world.session as RateSession | undefined;
console.log('[xr] mode/features', s?.enabledFeatures,
'frameRate', s?.frameRate,
'supported', s?.supportedFrameRates && Array.from(s.supportedFrameRates));
});
let sum = 0;
let frames = 0;
world.onXRFrame((_frame, delta) => { // delta is seconds
sum += delta;
if (++frames === 300) {
console.log('[xr] avg frame', ((sum / frames) * 1000).toFixed(2), 'ms',
'draw calls', world.renderer.info.render.calls,
'triangles', world.renderer.info.render.triangles);
sum = 0;
frames = 0;
}
});
}
Don't assume a default refresh rate: Meta's frame-rate page only gives older-device defaults.
Read frameRate, and see iwsdk-performance before calling updateTargetFrameRate.
Frame-rate and load-time numbers should come from the production build: the dev server serves
unbundled modules, the HMR client and emulator code. vite preview can serve dist/ over
HTTPS with the certificate iwsdkDev() already made (.iwsdk/https/_cert.pem holds both the
key and the certificate):
// vite.config.ts
import { existsSync, readFileSync } from 'node:fs';
const devCert = '.iwsdk/https/_cert.pem'; // written by iwsdkDev() on first dev run
const previewHttps = existsSync(devCert)
? { key: readFileSync(devCert), cert: readFileSync(devCert) }
: undefined;
export default defineConfig({
// ...existing config
preview: { host: '0.0.0.0', port: 8083, https: previewHttps },
});
npm run build && npx vite preview # then open https://<LAN-IP>:8083/ in Quest Browser
Use a port the dev server doesn't use, and accept the certificate warning once more (new port). Checked with IWSDK 1.0.1 on 2026-10-16 from the computer (the HTTPS page and the §4b endpoint both answer); opening it in Quest Browser is unverified.
A Quest page can't write files, and copying from the remote console is slow. A small Vite plugin
gives the page a same-origin endpoint that saves JSON (benchmark summaries, per-second perf rows,
tuning exports) into the repo, on both the dev server and vite preview:
// vite-plugins/results-sink.ts
import { mkdirSync, writeFileSync } from 'node:fs';
import { join } from 'node:path';
import type { Connect, Plugin } from 'vite';
export function resultsSink(root: string): Plugin {
const dir = join(root, 'results');
const handler: Connect.NextHandleFunction = (req, res) => {
const kind = (req.url ?? '').replace(/^\/+/, '').split('?')[0];
if (req.method !== 'POST' || !/^[a-z0-9-]{1,40}$/.test(kind)) {
res.statusCode = 400;
return res.end('expected POST /__results/<kind>');
}
const chunks: Buffer[] = [];
let size = 0;
req.on('data', (c: Buffer) => { size += c.length; if (size <= 5 * 1024 * 1024) chunks.push(c); });
req.on('end', () => {
try {
if (size > 5 * 1024 * 1024) throw new Error('payload too large');
const body = JSON.parse(Buffer.concat(chunks).toString('utf8'));
mkdirSync(dir, { recursive: true });
const file = join(dir, `${kind}-${new Date().toISOString().replace(/[:.]/g, '-')}.json`);
writeFileSync(file, `${JSON.stringify(body, null, 2)}\n`);
res.end(JSON.stringify({ saved: file }));
} catch (err) { res.statusCode = 400; res.end(String(err)); }
});
};
return {
name: 'results-sink',
configureServer: (server) => { server.middlewares.use('/__results/', handler); },
configurePreviewServer: (server) => { server.middlewares.use('/__results/', handler); },
};
}
// vite.config.ts: plugins: [iwsdkDev(), resultsSink(process.cwd())]
// in the app: fetch('/__results/bench', { method: 'POST', body: JSON.stringify(summary) })
Add results/ to .gitignore. The endpoint exists only on the dev and preview servers (a
static host has none), and it accepts writes from anyone who can reach the port, so keep those
servers on the LAN.
OVR Metrics Tool shows FPS and CPU/GPU frame times as an in-headset overlay. Install it from
Meta Quest Developer Hub or sideload it (Meta's WebXR performance workflow page), with the user's
permission. Record: target vs. actual FPS, GPU frame time, CPU frame time, in the heaviest scene
of the app, after 5+ minutes (thermals). Deeper tracing (Perfetto via
npm exec metavr -- perf capture) is covered by Meta's hz-perfetto-debug skill if installed;
whether it attributes Quest Browser WebXR frames usefully is unverified.
world.xr.features.handTracking in iwsdk.config.json)VisibleBlurredThe glasses ship in spring 2027; Meta's advice until then is to test on a Quest 3 or 3S. Their
users aim with their eyes, pinch to select, often have no controllers, and see 70° × 66°. App
changes (config, gaze UI, controller-free flows) are in iwsdk-vr-glasses; this is the
headset routine.
world.xr.features.gazeTracking set, add
"dev": { "targetDevicePreview": { "gazeSimulation": "head" } } to iwsdk.config.json
(IWSDK 1.0.1; dev server only, needs dev.emulator.iwer left on). The native Quest Browser
session keeps its viewer, hands, controllers and frame timing, plus a test gaze source that
follows the head. The console's [iwsdk][gaze] lines show whether gaze was granted, missing,
invalid or head-mapped. It proves plumbing, not eye-tracking accuracy.npm exec metavr -- device fov-sim enable # nominal 70° × 66°
npm exec metavr -- device fov-sim enable --perceived # p90 perceived 58° × 54°
npm exec metavr -- device fov-sim disable # always restore afterwards
If the view doesn't change, take the headset off and on, or sleep/wake it, or relaunch the
page. Check the boundary through the lenses: casts and screenshots only show the crop on
Horizon OS v209+, and before v209 the simulation doesn't clip compositor layers (WebXR
quad/cylinder layers).Don't follow world.features.fieldOfViewMask from Meta's hosted IWSDK guide: IWSDK 1.0.1
rejects the key (docs/meta-reference/web-iwsdk-docs-on-meta.md).
| Symptom | Check |
|---|---|
No Enter XR button / isSessionSupported false | Page not on HTTPS or localhost; world.xr disabled (--target browser projects have xr: false); a required XR feature the device lacks |
localhost refused on the headset | adb reverse missing, wrong serial, or wrong port; check adb -s <serial> reverse --list |
| Network URL times out | Different Wi-Fi, client isolation, or firewall on 8081 → route B |
| Certificate page every time | Host changed (new IP); accept again, or use route B for a stable localhost |
| IWER toolbar shows on the headset | dev.emulator.activation set to always, a custom userAgentException, or injectOnBuild: true |
| Works in IWER, black screen in headset | Read the console via chrome://inspect; then a full page reload (HMR can leave a stale session) |
| Dropped out of VR whenever a file is saved | Expected in dev: an edit reloads the page, which ends the XR session (headset and emulator). Batch edits, warn whoever wears the headset, re-enter XR; play-test on vite preview (§4a) |
| Assets missing only on device | Network tab: 404 from a hard-coded /path (use import.meta.env.BASE_URL), or CORS on a CDN |
device unauthorized | Re-plug and accept the USB debugging prompt in the headset |
Dev server rejects iwsdk.config.json after following Meta's VR Glasses page (unknown property "fieldOfViewMask") | That key isn't in IWSDK 1.0.1; remove it and use §7 (also suppressWhenHandPointerActive → suppressWhenDirectPointerActive) |
| Headset's field of view stays narrow | metavr device fov-sim disable, then take the headset off and on (a reboot also clears it) |
metavr app launch says "Launched" but nothing opens | An OS dialog is showing in the headset (logcat: Launch is blocked because). Ask the wearer to close it; confirm with pidof <pkg> (§3) |
packages/vite-plugin-dev/src/types.ts (emulator defaults), packages/core/src/ecs/world.ts (session, visibilityState, onXRFrame), packages/cli/src/runtime-state.ts (runtimeUrls)docs/metavr-cli-reference.md in this library (metavr device browser, log, capture screenshot, perf capture)@iwsdk/[email protected] dist/index.js (certificate cached in .iwsdk/https, written as _cert.pem)preview.https, preview.host, preview.port), https://vite.dev/guide/api-plugin (configureServer, configurePreviewServer)fov-sim, v209 notes), /test-your-app/ (2026-09-25), /get-started-with-glasses/ (2026-10-13); IWSDK 1.0.1 docs/concepts/xr-input/gaze.md (targetDevicePreview), npm @iwsdk/core 1.0.1 dist/project/validation.js, npm @iwsdk/vite-plugin-dev 1.0.1 dist/index.js (targetDevicePreview requires IWER)Last verified: 2026-10-25 (§3 logcat and launch notes); 2026-10-17 (the rest)
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/iwsdk-core:iwsdk-quest-device-testingfrom IWSDK Core
npx claudepluginhub mirzaaghazadeh/iwsdk-webxr-skills --plugin iwsdk-core17 skills in this plugin
/horizon-launch-roadmapPlan and sequence the launch of an IWSDK / WebXR game or 2D web app on Meta Quest: choose between hosted web, the Browser new tab page and a Horizon Store PWA; pick 2D vs immersive; list the irreversible decisions (Android package id, signing key, origin and Digital Asset Links, Early Access, pre-order and Coming Soon windows, Data Use Checkup auto-approval, age group, web IAP limits, Meta VR Glasses input and targeting); map each phase to the skill that does the work; and build a dated timeline counting back from launch day, plus post-launch growth tools. Use when the user asks "how do I publish my WebXR game", "should I ship as a PWA or just a website", "what's the release process for a Quest web app", "plan my launch", "when should I submit", "can I do early access / pre-orders", "should I support Meta VR Glasses", or starts a new IWSDK project meant for the store./horizon-store-listing-assetsPrepare and validate the Meta Horizon Store listing for a WebXR / IWSDK PWA or a 2D PWA: art specs (covers, Hero, Mini Landscape, Logo, Icon, Spatialized tile, screenshots, trailer, 360 preview), asset VRCs, metadata limits, specs (play area, input, comfort, internet), age group and IARC, privacy policy and Data Use Checkup, pricing, price A/B tests, Try Before You Buy limits, web IAP limits (WebXR PWAs only, no subscriptions), sales, keys, Early Access, pre-orders, Store analytics, and what Meta VR Glasses change. Includes an image checker. Use when the user asks for "store assets for my web app", "cover art size", "screenshots of my WebXR game", "trailer requirements", "store description", "age rating / IARC", "privacy policy for my Quest PWA", "can my PWA sell items", "set the price", "A/B test my price", "free trial", "run a sale", "generate keys", or "early access". Replaces the asset table in Meta's hz-store-submit, which has wrong dimensions and limits./horizon-web-store-publishEnd-to-end release pipeline for shipping an IWSDK / WebXR game (or a 2D web app) on the Meta Horizon Store as a PWA/TWA: production build, HTTPS hosting that can serve /.well-known/assetlinks.json, web app manifest and icons, @meta-quest/bubblewrap-cli in immersive or 2D mode (scripted, non-TTY), version codes, signed-APK verification, sideload test, ovr-platform-util or metavr upload to ALPHA, device targeting (Future devices for Meta VR Glasses, quest3+ channel suffix), promotion between release channels, web-only updates versus APK rebuilds, and CI. Ships a deploy checker, a TWA APK verifier and a guarded upload wrapper. Use when the user says "publish my WebXR app to the Quest store", "package my IWSDK game as a PWA", "bubblewrap for Quest", "my TWA won't launch / shows a URL bar", "assetlinks", "upload my web app APK", "ship my PWA to Meta VR Glasses", "promote to beta / production", or "set up CI for my Quest PWA". Builds on and corrects Meta's hz-store-pwa skill./horizon-web-vrc-checklistPre-submission audit of a WebXR / IWSDK PWA (immersive) or a 2D PWA against Meta's current Virtual Reality Checks (VRCs) for the Horizon Store, by VRC ID, using the Store and Store (2D) columns of Meta's VRC table. For each VRC it gives the web-specific check (WebXR APIs, Bubblewrap manifest output, web permissions) and how to test it in the installed TWA on a Quest with metavr, adb, chrome://inspect and OVR Metrics Tool, then produces a PASS/FAIL/RISK evidence table. Use when the user asks "will my WebXR app pass review", "VRC checklist for a PWA", "which VRCs apply to a 2D web app", "focus awareness in WebXR", "pause when the Universal Menu opens", "frame rate requirement for WebXR", "entitlement check for a PWA", "is my PWA ready for Meta VR Glasses", or "why was my web app rejected (VRC...)". Takes precedence over the generic VRC notes in Meta's hz-store-submit, which are partly out of date./hz-immersive-designerGuides design of comfortable, intuitive VR/MR experiences for Meta VR and Horizon OS — comfort guidelines, interaction patterns, spatial layout, accessibility. Use during UX design review or when evaluating comfort and accessibility. Build paths: Meta Spatial SDK, Unity, Unreal, native OpenXR, and WebXR; for 2D panel apps use hz-panel-designer if available. Use hz-quest-verify-first if the build path is unclear./hz-perfetto-debugAnalyzes Meta VR and Horizon OS VR performance using Perfetto traces — frame timing, CPU/GPU bottlenecks, render pass analysis. Use when profiling frame drops, jank, or thermal issues on Meta VR devices. Build paths: all Meta VR app stacks; use hz-quest-verify-first if the build path is unclear.