05-31-2019 12:10 AM
03-29-2021 12:35 PM
I know this is an old post, and it doesn't seem like WebXR stuff gets a lot of traffic here, but just in case anyone else runs into this...
The extension won't be available until after the WebXR session has started. If you attempt to get the extension before session start, you get the null result as you have seen. You have to wait until after the user has activated VR mode to then call getExtension().