pmndrs / xr

🤳 VR/AR for react-three-fiber
https://pmndrs.github.io/xr/docs/
Other
2.12k stars 152 forks source link

How to use it on an Android device's browser? Nothing happens after clicking the start button #338

Closed Signinu closed 3 weeks ago

Signinu commented 3 weeks ago

image Nothing happens after clicking this button

Signinu commented 3 weeks ago

Chrome browser I use

bbohlender commented 3 weeks ago

it seems like your browser does not support WebXR, which is why the emulator starts up. To better understand your issue, I need more information. I also recommend checking out the pitfalls to assure your not running in any of those issue (e.g. missing https). Additionally, I recommend checking if other WebXR examples work with the same mode you are using (AR/VR).

Signinu commented 3 weeks ago

Please tell me a browser that can use XR projects on Android phones. Thank you very much. My project needs to run on Android phones.

Signinu commented 3 weeks ago

This is the browser version I'm using now 20240822-101323

Signinu commented 3 weeks ago

20240822-165517 If it is normal, what will happen when I click this button? Currently, there is no response when I click this button

bbohlender commented 3 weeks ago

The button is for emulation on a computer with mouse and keyboard. Make sure your device has the required services installed to run AR things. If I remember correctly you need some google play services for android.

Signinu commented 3 weeks ago

Yes, I have installed Google Play Services for AR, version 1.43+, but I still don't know how to enter AR mode with Chrome browser

Signinu commented 3 weeks ago

When I enter the webpage, there is no pop-up button to enter AR mode

Signinu commented 3 weeks ago

Thank you very much. After commenting out the code in the simulator, you can enter AR mode normally.

bbohlender commented 3 weeks ago

@Signinu Could you explain what "commenting out the code in the simular" means. Since, if you actually had to modify the source code to make it run, this sounds like a bug that should be fixed :)