WebAR with visionOS 2.0?

visionOS 2.0 enables passthrough with Metal now: https://developer.apple.com/wwdc24/10092

This suggests it will be possible for WebXR’s AR passthrough module to be implemented for Safari.

Is this already available, perhaps behind a flag?

Answered by Vision Pro Engineer in 790765022

WebXR "immersive-ar" sessions are not supported on visionOS or iOS. There is a flag but "immersive-ar" sessions are not in a testable state so even though the flag is there it is non-functional at this time. If this is a feature you would like please file a feedback request it's extremely helpful.

EDIT: the augmented reality flag exists, and I'm wondering if it already worked in v1? If not, does it work in v2?

Accepted Answer

WebXR "immersive-ar" sessions are not supported on visionOS or iOS. There is a flag but "immersive-ar" sessions are not in a testable state so even though the flag is there it is non-functional at this time. If this is a feature you would like please file a feedback request it's extremely helpful.

WebAR with visionOS 2.0?
 
 
Q