WebAR in Virtual Mobile Phone possible?

i just started to work with needle engine.
my goal is to program a little webxr game that is supposed to played via mobile phone using ar features for a school project.
currently my mobile phone is not supporting arcore and i looking for a way to emulate a mobile phone on my pc for development.
i found out about android studio and its feature to create a virtual device and i did that but i can’t seem to get the ar feature working when using the virtual devices browser to open an glitch with ar featues for example.
does someone know how it might can be done? can it even be done in android studio or do i have to go another route?
thanks in advance

Original Post on Discord

by user 313407509618622466

Hello there – we have an experimental AI bot :robot: that might be able to help you with your question. Would you like to try this out?

How it works:
Reply to the messages of the bot that end with a thread_id to interact with it and ask follow-up questions. You can also mention the bot directly in this channel to get help.

Help requested: please wait a moment…

Here is what I found for you :brain: Discord

Hello zerker94,

When it comes to testing AR features, it is generally challenging to emulate them accurately on a PC, because AR requires a combination of hardware and software that is specific to mobile devices, such as cameras and sensors for motion tracking and environment understanding.

Android Studio emulators do allow you to test regular mobile applications, but they typically do not support ARCore or equivalent AR frameworks because these require access to a physical device’s camera and sensors, which cannot be accurately simulated in an emulator. The emulators in Android Studio are intended for testing standard Android applications, but they lack the necessary hardware support for AR.

For development purposes, you can try the following approaches:

  1. Use an actual AR-supported device: This is the most reliable way to test AR features. You may want to consider borrowing an AR-enabled device for your development and testing purposes if you do not own one.

  2. Mock AR interactions: Develop your game with mock interactions or placeholder objects that simulate AR functionality, which can be replaced or enabled when using an actual device. This can be done within the Needle Engine environment, allowing you to progress with other aspects of your game.

  3. WebXR Emulator Extension: For quick WebXR API testing, consider using a WebXR emulator browser extension that can simulate some device inputs for XR sessions in the browser.

Please note that despite these suggestions, there’s no complete substitute for testing on a real device, especially if you want to ensure a good user experience with accurate tracking and performance. Testing on an actual mobile device is vital before releasing an AR application.

You can find additional information about Mobile AR development on the Needle Engine docs at:

You may also check the Samples Repository for examples and inspiration for your project.

1 messages left GPT 4
Thanks for your feedback!

Hey, point (3) above works quite well. You can install https://chrome.google.com/webstore/detail/immersive-web-emulator/cgffilbpcibhmcfbgggfhfolhkfbhmik in Chrome on your desktop machine and then test AR cases using that.

Not all WebXR apis can be tested with it (e.g. you can’t test image tracking) but the general cycle like placing content, moving around in the scene and interacting with objects work great

ill try it out ty

by user 313407509618622466

@z3rker94 I use this extension https://chromewebstore.google.com/detail/webxr-api-emulator/mjddjgeghkdijejnciaefnkjmkafnnje

by user 729729339599487087