I recently noticed something strange while using the Device Orientation API.
The following online demo works perfectly (except for “compassneedscalibration”): https://www.audero.it/demo/device-orientation-api-demo.html
However, when I clone the Source Code locally and provide the Web page via a local web server (
deviceorientation event not supported devicemotion event not supported compassneedscalibration event not supported
Screenshot of non working Webpage
I’m using “Chrome 79.0.3945.93” on “Android 7.1.1;VNS-L21 Build/NMF26V”. Is there something I’m doing wrong, or is this an intended behavior or a bug? Because I will need to provide my web app by a local web server.