-
-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createXRStore fails on WebXR Viewer for iOS #337
Comments
you can disable the feature that is causing the error I assume these apps are rather outdated and thus are not aware of https://github.com/immersive-web/navigation and I cannot detect if they support this feature. Since they might also not support other features, it might also be required to disable others, to have them work |
Is there a way to know if the device supports any of the react xr store properties? like mesh detection and stuff |
@cyango WebXR operates by allowing developers to request optional features. Therefore you can always request a feature and If its not available, it will not be enabled, which is basically checking for support. |
Thanks @bbohlender !
This solved the error I was getting. Nevertheless, now I have an issue with Is this a separate issue? |
@valado sorry for the delay. I'd love to help you out on this but I dont own a iOS device and I also would not want to put effort into supporting unsupported browsers that are most likely not spec complaint. If you can identify a bug in this library I'll happily fix it asap, but I suspect the inability to click/interact with things is due to the outdated browser implementation not emitting the correct events. This is only a suspicion I unfortunately cannot test right now :) |
@bbohlender the fact that it works in Chrome on Android kind of points towards the browser. Nevertheless, it is weird that it used to work with the previous major version of the lib. Do you have any pointers on how can I dig a bit deeper short of adding some console.log calls within the lib (inside node_modules) and figuring out how to get the console stream out of the WebXR Viewer? |
this new major version uses more WebXR features that are in the spec but not supported (specifically, computing the difference between any two WebXR spaces). I assume the error is the same as for the old WebXR API Emulator, which will happen for the controller implementation, so it might start to work if you start to disable certain features, such as the controllers |
Description
With the previous version it used to work running WebXR on iOS using one of the XR-ready web browsers available, such as:
WebXR Viewer
XR Browser
Error
The new version of
@react-three/xr
throws the following error:`
Shim: We don't expect user adds event before stating session.
addEventListener@user-script:28:33:28
setupSessionGrantedListener
vendors-node_modules_react-three_drei_core_Text_js-node_modules_react-three_fiber_dist_react--33db12.js:18208:35
createXRStore
vendors-node_modules_react-three_drei_core_Text_js-node_modules_react-three_fiber_dist_react--33db12.js:17972:70
`
How to reproduce
The text was updated successfully, but these errors were encountered: