You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hii there,
i want to open AR screen automatic on DOMContentLoaded for which i am using document.addEventListener("DOMContentLoaded", function () { setTimeout(() => xrButton.__onXRButtonClick(), 2000); });
this is working fine on desktop browser but when i am testing the same thing in my phone browser it is not working. we are getting this error in console- XRSession creation failed: Failed to execute 'requestSession' on 'XRSystem': The requested session requires user activation.
while on click button manually on same device with same browser it is working.
The text was updated successfully, but these errors were encountered:
It is a mobile limitation that prevents full screen, camera access and things like that without user consent/click/activation
There are several discussions online about it and maybe some workarounds that i haven't explored
Hii there,
i want to open AR screen automatic on DOMContentLoaded for which i am using
document.addEventListener("DOMContentLoaded", function () { setTimeout(() => xrButton.__onXRButtonClick(), 2000); });
this is working fine on desktop browser but when i am testing the same thing in my phone browser it is not working. we are getting this error in console-
XRSession creation failed: Failed to execute 'requestSession' on 'XRSystem': The requested session requires user activation.
while on click button manually on same device with same browser it is working.
The text was updated successfully, but these errors were encountered: