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"); button.click();