Hi
I have a problem with opening ar session without user interaction. Normally after creating defaultXRExperience I get button which turning on AR session after user click it, but I want to get this action done without user interaction. I need to open AR session exactly after creating all necessery function for defaultXRExperience.
Is there any possible way to do that?
I tried to make that working with using this code
var button = document.getElementsByClassName("babylonVRicon")[0];
button.click();
I can only confirm that - there are (among others) a few security implications to starting an AR session without the user’s consent. You require a user interaction to start a session.