Possible to Start AR automatically

Is it possible to automatically start AR on mobile, instead of having to click on the AR button? (WebXR and Quicklook)

Original Post on Discord

by user 313734732934283264

Hello there – we have an experimental AI bot :robot: that might be able to help you with your question. Would you like to try this out?

Hi, you need a user interaction on the website before starting immersive-ar (that’s WebXR e.g. on Android). The interaction doesnt have to be on that button but it must be a click somewhere (same with playing e.g. audio on a website)

You could however start Quicklook immediately

Ok, thanks. That’s what I was thinking as well :+1:

by user 313734732934283264

With the new XR system what you can do is window.addEventListener("click", () => { NeedleXRSession.start("immersive-vr") } for example to immediately start an XR session when the user first clicks on the website