# WebXR Plane detection API not working in WebXR Viewer

**URL:** <https://forum.babylonjs.com/t/webxr-plane-detection-api-not-working-in-webxr-viewer/14004>\
**Category:** Bugs\
**Created:** [September 8, 2020, 1:48pm UTC](https://forum.babylonjs.com/t/webxr-plane-detection-api-not-working-in-webxr-viewer/14004 "2020-09-08T13:48:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam\_breachvr](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@adam\_breachvr](https://forum.babylonjs.com/u/adam_breachvr)\
**Post date:** [September 8, 2020, 1:48pm UTC](https://forum.babylonjs.com/t/webxr-plane-detection-api-not-working-in-webxr-viewer/14004/1 "2020-09-08T13:48:19Z")

</div>

WebXR Viewer version: 2.0  
Playground demo: [Babylon.js Playground](https://playground.babylonjs.com/pg/98TM63)  
(referenced from [WebXR Augmented Reality Features - Babylon.js Documentation](https://doc.babylonjs.com/how_to/webxr_augmented_reality))

The plane added callback is never executed, even though planes are detected by the underlying WebXR API and are visible when enabling the WebXR Debug toggle.

---

<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 8, 2020, 2:15pm UTC](https://forum.babylonjs.com/t/webxr-plane-detection-api-not-working-in-webxr-viewer/14004/2 "2020-09-08T14:15:37Z")

</div>

I can’t comment about iOS, as it has no official webxr support and I don’t have an iphone to test with. I answered in a different thread, but here is t summary -

This demo requires hit-test, plane detection and anchors. and if they are not available, it will fail silently (on certain cases the XR session will not even initialize).
