-
I have followed all of the tutorials online, but the AR button and view only seems to work on iOS devices and not Android. I have tried multiple iterations of code, but will share one here that is currently allowing AR on iOS but not Android. Also, I have tried other websites on Android devices that successfully deploy AR, so I know the devices are compatible. Here is my code that will not deploy AR view on Android, but can on iOS: model-viewer documentation says "If Google Play Services with AR isn't present, tapping this button displays the model in 's 3D viewer." Although, I tried the demos on the model-viewer site in android, and they worked! And I checked, and the device has "Google Play Services with AR" installed! So I'm not sure why my code above isn't working for my site... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
My best guess is permissions; WebXR will ask for AR permission once per URL, and if you block it, it will silently fail from then on unless you manually go in and clear the permissions so it can ask again. You can also switch the order of "webxr scene-viewer" to get the scene-viewer experience instead. Also, what browser/device are you using? |
Beta Was this translation helpful? Give feedback.
-
The problem was an outdated api version. It was fixed by using <script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script> |
Beta Was this translation helpful? Give feedback.
The problem was an outdated api version. It was fixed by using <script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>