WebXR on Apple Vision Pro: what works in Safari

By the Turbl team · · 10 min read

Apple Vision Pro WebXR support is real but partial. Safari on visionOS runs fully virtual immersive-vr sessions, with gaze and pinch input and optional hand tracking. It does not run immersive-ar sessions, so a web page cannot draw 3D objects over your real room. That is the state as of November 2026, on visionOS 27.

What works and what does not

WebXR is the web standard that lets a page run VR and AR in a browser. If the term is new, read what WebXR is first.

A page asks the browser for a session. A session is the time during which the page controls what the headset shows. immersive-vr replaces your surroundings with a virtual world. immersive-ar draws virtual objects over the real one.

Everything in this table is as of November 2026. The current system version is visionOS 27.2.1, per Apple's update notes.

FeatureSafari on Vision ProSince
immersive-vr sessionsYes, on by defaultvisionOS 2, September 2024
immersive-ar sessionsNoNot supported
Gaze and pinch input (transient-pointer)YesvisionOS 2
Hand tracking (25 joints per hand)Yes, after a permission promptvisionOS 2
Rendering with WebGLYesvisionOS 2
Rendering with WebGPUYesSafari 26.2, December 2025
Tracked motion controllers as WebXR inputsNot confirmedSee below
Bluetooth gamepads through the Gamepad APIYesShown by Apple at WWDC 2024

WebGL and WebGPU are the two browser APIs that draw 3D graphics. WebGPU is the newer one.

A short history

visionOS 1, 2024. WebXR was in Safari but switched off. You had to turn on a feature flag in Settings. In March 2024, visionOS 1.1 with Safari 17.4 added the gaze and pinch input, also behind a flag. Apple said it was "for testing purposes only".

visionOS 2, September 2024. Safari 18.0 turned on immersive-vr sessions for everyone. It shipped with transient-pointer input and hand tracking. Rendering used WebGL only.

visionOS 26, 2025. Safari 26.2 arrived on December 12, 2025. It let WebXR sessions render with WebGPU. Apple also released a Vision Pro with the M5 chip in October 2025, at 3,499 US dollars.

visionOS 27, September 2026. Safari 27.0 added one WebXR item: texture array projection layers. That is a rendering option where each eye draws into its own layer of a single texture. The bigger change was a separate feature, covered in the last section.

How input works: gaze and pinch

Vision Pro ships without controllers. You look at something and pinch your thumb and index finger. Apple calls this natural input.

WebXR exposes it as an input source with a targetRayMode of transient-pointer. An input source is the object that represents one controller, hand or pointer. "Transient" means it exists only while you pinch.

This is the sequence, per WebKit's documentation:

  1. Before a pinch, session.inputSources is empty. The page does not know where you look or where your hands are.
  2. You pinch. A new input source appears. The session fires inputsourceschange, then selectstart.
  3. You move your hand. The input source updates.
  4. You release. The session fires select and selectend. Then the input source is removed.

Each input source has two spaces. A space is a tracked position and direction.

  • targetRaySpace starts between your eyes and points at what you looked at when the pinch began. After that it follows your hand, not your eyes.
  • gripSpace is where your pinched fingers are right now.

Use the ray to find what the user picked. Use the grip to hold an object in the hand.

The privacy reason matters for design. Where a person looks is sensitive. Safari reveals the gaze direction only at the moment of a pinch. So your page never sees a hover. It cannot highlight a button because the user looks at it.

Here is the pattern in plain WebXR. It assumes you already have a session and a reference space.

session.addEventListener('selectstart', (event) => {
  const source = event.inputSource;
  if (source.targetRayMode !== 'transient-pointer') return;

  // What the user looked at when the pinch began.
  const rayPose = event.frame.getPose(source.targetRaySpace, referenceSpace);
  // Where the pinching fingers are.
  const gripPose = source.gripSpace
    ? event.frame.getPose(source.gripSpace, referenceSpace)
    : null;

  // Raycast from rayPose.transform to pick an object.
});

Hand tracking on Vision Pro

Hand tracking gives the page the position of 25 joints in each hand. You ask for it by adding hand-tracking to the features list when you request the session. Safari then shows a second permission prompt. The first one is for the session itself.

Three things differ from Quest:

  • You must draw the hands. Without hand tracking, Safari shows the user's real hands. Once you request hand tracking, it stops, and Apple expects your page to render them.
  • The hands do not fire events. They supply joint positions only. On visionOS, every select event comes from a transient pointer.
  • The order of inputs changes. The two hands take the first two places in inputSources. Transient pointers come after them. If the user pinches with both hands, there can be four inputs at once.

The WebXR hand tracking guide covers reading joints and detecting a pinch yourself.

What is missing

AR sessions. This is the biggest gap. In June 2026 an Apple engineer wrote on the Apple Developer Forums: "The WebXR immersive-ar mode isn't currently supported in visionOS." An earlier Apple answer from June 2024 said the same. Safari's settings had a flag called "WebXR Augmented Reality Module" that did nothing. A forum user reported in September 2026 that the flag is gone in visionOS 27. Apple has not confirmed that.

So a Quest page that places objects on your real floor or table has no session to run in. The guide to WebXR mixed reality and passthrough explains what those features need.

A wrong answer on older builds. On visionOS 26, Safari said yes when a page asked isSessionSupported('immersive-ar'). WebKit fixed the bug in January 2026. A headset that has not been updated may still give the wrong answer.

Tracked controllers, probably. Since visionOS 26, the system supports the PlayStation VR2 Sense controller and the Logitech Muse stylus in native apps. Whether Safari exposes them to WebXR as tracked input sources is not confirmed. In June 2025 a developer reported on Apple's forums that the Sense controllers showed up only as ordinary gamepads, not as WebXR inputs. Apple did not reply in that thread. WebKit's feature lists for Safari 26.2 and 27.0 do not mention controller support. Treat a Vision Pro user as having no controllers.

iPhone, iPad and Mac. Safari supports WebXR only on Vision Pro. The full picture is in the WebXR browser support table.

How to adapt a Quest-first WebXR app

Most WebXR pages are built for Meta Quest and its two controllers. Here is what to change.

Quest habitWhat to do for Vision Pro
Read controllers at inputSources[0] and [1]Loop over all inputs. Check targetRayMode and handedness.
Expect inputs to always existHandle an empty list. Listen for inputsourceschange.
Read triggers and thumbsticks from gamepadUse selectstart, select and selectend.
Move the player with a thumbstickOffer teleport by look and pinch, or keep the game in one spot.
Highlight what the controller points atDrop hover states. Make targets large and obvious.
Attach a held object to the rayAttach it to gripSpace.
Start an AR sessionFall back to immersive-vr with a virtual room.

Some detail on the ones that bite.

Do not assume two inputs. WebKit names this as a common failure. Many three.js examples act only on inputs 0 and 1. With hand tracking on, those are the hands, which fire no events. The pinches arrive at index 2 and 3 and nothing happens.

Plan for no thumbstick. Smooth walking needs a stick. A pinch gives you a point and a click. Teleporting to the spot the user looks at fits that well. The article on VR locomotion types compares the options.

Put objects at the grip, not the ray. The ray starts between the eyes. An object attached to it shows up at the user's face.

Reset smoothing. Some frameworks smooth controller motion between frames. A transient pointer disconnects after every pinch. Without a reset, the ray slides from the last pinch to the new one.

Make hand tracking optional. Put hand-tracking in optionalFeatures, not requiredFeatures. If a required feature is denied, the session does not start. Ask for it only if you will draw the hands.

Catch a failed AR request. Check isSessionSupported('immersive-ar'). Then also catch a rejected requestSession, because of the visionOS 26 bug above.

Detect features, not the device. WebKit asks developers not to target the user-agent string to work around bugs. Test for what you need and react to the input types that arrive.

Show a way out. The user can leave at any time by pressing the Digital Crown. Listen for the session's end event and bring your page back.

Libraries do part of this. In @react-three/xr, the store has a transientPointer option with a default implementation. Its handTracking option defaults to true, except on Apple Vision Pro, where it defaults to false.

Turbl builds WebXR projects from a text description. It is tuned for Meta Quest first. Its projects also open in Safari on Vision Pro, and the limits in this article apply to them like any other WebXR page.

Testing without the headset

You do not need a Vision Pro to check the basics. Apple's visionOS Simulator runs on a Mac and comes with Xcode.

  • Install Xcode and add the visionOS SDK.
  • Open the Simulator app and start a visionOS device.
  • In Safari on the Mac, choose Develop, then Open Page With, then Apple Vision Pro.
  • During a WebXR session, a click on the simulator window acts as a transient pointer.
  • Web Inspector in Safari on the Mac can inspect the page running in the simulator.

Two limits. Hand tracking does not work in the simulator, so that needs a real device. And WebXR needs a secure context: HTTPS, or localhost on your own machine.

For Quest-style testing on any computer, see how to test WebXR without a headset.

Apple's other route: immersive website environments

Safari 27.0 added a way for a website to surround the visitor with a 3D place. It is not WebXR.

You put a 3D model in an HTML model element. The file format is USDZ, Apple's 3D format. You call requestImmersive() on the element from a click. The environment opens around the page, and the page stays visible. Apple modeled the API on the Fullscreen API. The visitor leaves with the Digital Crown.

Compared with WebXR, it is far less code. It is also far less control. You supply a model, not a render loop, so it suits places to look at more than games. It runs only in Safari on visionOS. Apple's forum reply about AR listed it as one of the alternatives to immersive-ar.

FAQ

Does Apple Vision Pro support WebXR?

Yes, in Safari. Since visionOS 2 in September 2024, immersive-vr sessions are on by default. You tap a button on the page, allow the session, and the virtual scene surrounds you. AR sessions are not supported.

Does WebXR AR work on Apple Vision Pro?

No. As of November 2026, Safari on visionOS does not support immersive-ar sessions. An Apple engineer confirmed this on the Apple Developer Forums in June 2026. Apple has announced no date for it.

How do I enable WebXR on Apple Vision Pro?

On visionOS 2 or later you do nothing. It is on by default. Only visionOS 1 needed a feature flag, under Settings, Apps, Safari, Advanced, Feature Flags. Updating the headset is the better fix.

Do Quest WebXR games work on Vision Pro?

Some do. Games that only need pointing and clicking often work, because a pinch fires the same select events as a trigger. Games that need thumbsticks, grip buttons or an AR session do not work without changes.

Can I use controllers with WebXR on Vision Pro?

A Bluetooth gamepad, such as a PlayStation 5 controller, works through the standard Gamepad API. Tracked motion controllers as WebXR inputs are not confirmed. A June 2025 developer report says PlayStation VR2 Sense controllers appeared only as gamepads.

Does WebXR work in Safari on iPhone?

No. Safari on iPhone, iPad and Mac does not ship WebXR. Among Apple devices, only Vision Pro has it.

Sources

Keep reading