Replies: 1 comment
-
Hmm, interesting. Do you want to make a PR? I'm not quite sure what behavior would be better. At least this pushed you to find and fix your bug, rather than just having a non-deterministic result, which could have been more easily ignored. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
If activateAR() fails due to WebXR permissions issue (not user-initiated event), future uses of activateAR() will fail to launch WebXR. Ideally the activation would be retried when launched in a different context before falling back, or always retried if "webxr" is the only AR mode set.
There may be nothing that can be done due to the need to fallback or even remove the AR button when webXR is not available, but there are some contexts where what is 'user initiated' can be a bit opaque (e.g. a chains of promises, some reactive frameworks) and multiple pathways to launch webXR might exist with varying behaviour across browsers.
In fact we discovered this because we were calling 'launch' on page load, which previously worked on certain combinations of Android + Browser versions.
Live Demo
https://trapezoidal-tricky-tumbleweed.glitch.me/ (wait for full load)
Version
Browser Affected
OS
AR
Beta Was this translation helpful? Give feedback.
All reactions