immersive-web / webxr-polyfill

Use the WebXR Device API today, providing fallbacks to native WebVR 1.1 and Cardboard
Apache License 2.0
378 stars 84 forks source link

CardboardVR on HTTP #147

Open De-Panther opened 4 years ago

De-Panther commented 4 years ago

At least on Chrome for Android, it seems that getting the device orientation is not allowed on HTTP. It means that CardboardVR on HTTP isn't working.

In that case, if the fallback of the device is CardboardVR and the page is insecure, I think that it'll be better if there was a console error while loading the page, and the "immersive-vr" session shouldn't be supported. The error message could be something like "Can't fallback to CardboardVR on insecure context".