# WebXR emulator doesn't work with chrome on mac but works on windows

**URL:** https://forum.babylonjs.com/t/webxr-emulator-doesnt-work-with-chrome-on-mac-but-works-on-windows/43975
**Category:** Bugs
**Tags:** webxr
**Created:** [September 9, 2023, 4:40pm UTC](https://forum.babylonjs.com/t/webxr-emulator-doesnt-work-with-chrome-on-mac-but-works-on-windows/43975 "2023-09-09T16:40:28Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Bhushan\_Wagh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bhushan_wagh/32/34147_2.png) [@Bhushan\_Wagh](https://forum.babylonjs.com/u/Bhushan_Wagh)
#### Post date: [September 9, 2023, 4:40pm UTC](https://forum.babylonjs.com/t/webxr-emulator-doesnt-work-with-chrome-on-mac-but-works-on-windows/43975/1 "2023-09-09T16:40:28Z")

</div>

I saw something weird, webxr demos don’t work with webxr emulator on chrome of mac but work on window’s chrome, is it known issue? I initially thought its an issue with webxr emulator on mac but then I tried with three js examples they seem to work properly. So it seems like an issue with babylon js.

---

<div class="post-metadata">

### Author: ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)
#### Post date: [September 11, 2023, 12:15pm UTC](https://forum.babylonjs.com/t/webxr-emulator-doesnt-work-with-chrome-on-mac-but-works-on-windows/43975/2 "2023-09-11T12:15:57Z")

</div>

I don’t have a mac to check, @RaananW you have one right?

To be more precise, which demos exactly don’t work on Babylon but work on Three? All of them? Any specific one?

---

<div class="post-metadata">

### Author: ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)
#### Post date: [September 11, 2023, 12:19pm UTC](https://forum.babylonjs.com/t/webxr-emulator-doesnt-work-with-chrome-on-mac-but-works-on-windows/43975/3 "2023-09-11T12:19:27Z")

</div>

nope, no mac here, sorry.

Would be great to know what error you are getting. And whether three falls back to some other API chrome on a mac might support. I can’t seem to find any information online

---

<div class="post-metadata">

### Author: ![Bhushan\_Wagh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bhushan_wagh/32/34147_2.png) [@Bhushan\_Wagh](https://forum.babylonjs.com/u/Bhushan_Wagh)
#### Post date: [September 13, 2023, 10:48am UTC](https://forum.babylonjs.com/t/webxr-emulator-doesnt-work-with-chrome-on-mac-but-works-on-windows/43975/4 "2023-09-13T10:48:40Z")

</div>

it started working `const vrHelper = await scene.createDefaultXRExperienceAsync({ createDeviceOrientationCamera: false, useXR: true, // This will enable XR if supported });` with this in small demo I made. But now same thing breaks in my actual app when i use it.

And this is the current error

 ![Screenshot 2023-09-13 at 4.17.59 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/c/bc671a823ca2777ec2814d57651786f48b12b312.png)

---

<div class="post-metadata">

### Author: ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)
#### Post date: [September 13, 2023, 11:08am UTC](https://forum.babylonjs.com/t/webxr-emulator-doesnt-work-with-chrome-on-mac-but-works-on-windows/43975/5 "2023-09-13T11:08:33Z")

</div>

The code certainly feels off, since you are using the WebVR options in the WebXR default experience.

Having said that, it still shouldn’t happen. Can you reproduce that on the playground?

---

<div class="post-metadata">

### Author: ![Bhushan\_Wagh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bhushan_wagh/32/34147_2.png) [@Bhushan\_Wagh](https://forum.babylonjs.com/u/Bhushan_Wagh)
#### Post date: [September 13, 2023, 11:35am UTC](https://forum.babylonjs.com/t/webxr-emulator-doesnt-work-with-chrome-on-mac-but-works-on-windows/43975/6 "2023-09-13T11:35:32Z")

</div>

Okay, let me try if I can reproduce it in playground.

I was going through [demo playground in docs](https://playground.babylonjs.com/#TAFSN0#323). `var vrHelper = scene.createDefaultVRExperience({createDeviceOrientationCamera:false, useXR: true});` and it uses this method but it shows that its deprecated and docs mentions `createDefaultXRExperienceAsync` and event Microsoft has [tutorial](https://learn.microsoft.com/en-us/windows/mixed-reality/develop/javascript/tutorials/babylonjs-webxr-piano/keyboard-model-02) that also uses this same method for VR. So its really confusing to me. And many demos are using same method for create VR experience [WebXR Demos and Examples | Babylon.js Documentation](https://doc.babylonjs.com/features/featuresDeepDive/webXR/webXRDemos)

I have no idea about VR or XR unfortunately and trying figure out.

---

<div class="post-metadata">

### Author: ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)
#### Post date: [September 13, 2023, 11:39am UTC](https://forum.babylonjs.com/t/webxr-emulator-doesnt-work-with-chrome-on-mac-but-works-on-windows/43975/7 "2023-09-13T11:39:05Z")

</div>

WebVR is deprecated and is not recommended anymore. actually, it is removed from the browser and is no longer supported.

The WebXR demos don’t use the code you have pasted (or at least the options you have pasted). You are combining two different methods with the same parameters.

But again, I don’t think this is the issue, unless you are really using WebVR instead of WebXR. A playground would be great (where your issue can be seen)

---

<div class="post-metadata">

### Author: ![Bhushan\_Wagh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bhushan_wagh/32/34147_2.png) [@Bhushan\_Wagh](https://forum.babylonjs.com/u/Bhushan_Wagh)
#### Post date: [September 20, 2023, 1:23pm UTC](https://forum.babylonjs.com/t/webxr-emulator-doesnt-work-with-chrome-on-mac-but-works-on-windows/43975/8 "2023-09-20T13:23:29Z")

</div>

Unfortunately I couldn’t bring the example of app to playground but one thing I noticed it breaks for all the VR devices in WebXR emulator except for Google cardboard device. ik thats not a lot for debugging but thought I should let you know.
