Detect AR availability #2377
Replies: 3 comments 27 replies
-
The canActivateAR() should return this, but you do need to indicate which AR backends you allow with Beyond that it would depend on the device your using, also if you can provide a glitch example of your setup that would be helpful, thanks! |
Beta Was this translation helpful? Give feedback.
-
hi @elalish, sorry to piggyback on someone else's question, but I do think there might be a problem here... canActivateAR is only returning true for scene-viewer for me as well! |
Beta Was this translation helpful? Give feedback.
-
The "load" event needs a listener on the model viewer, not the window.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to detect if AR is available on a device? I tried with
modelViewer.canActivateAR
but it return alwaysfalse
.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions