title: Bypass 'ondevicemotion' deprecation warning in Chrome
body: <p>I'm building a web app, which involves detection of shaking event for a mobile device:</p>
  
  <pre><code>if (this.hasDeviceMotion) { window.addEventListener('devicemotion', this, false); }
  </code></pre>
  
  <p>I'm using <a href="https://github.com/alexgibson/shake.js/" rel="nofollow">shake.js plugin</a> by Alex Gibson.</p>
  
  <p>When testing my app in Chrome desktop browser I'm getting this warning:</p>
  
  <p><code>The devicemotion event is deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.</code></p>
  
  <p>In this link there's this text:</p>
  
  <p><code>We want to start applying the concepts in https://w3c.github.io/webappsec/specs/powerfulfeatures/ to features that have already shipped and which do not meet the (new, not present at the time) requirements. We want to start by requiring secure origins for these existing features:
  Device motion / orientation
  EME
  Fullscreen
  Geolocation
  getUserMedia()...</code></p>
  
  <p>Even though it currently deprecated on desktop Chrome, knowing the guys in Mountain View I'm sure it will shortly be deprecated on mobile Chrome and Android Webview too.</p>
  
  <p>My app is hosted on a server without secure connection, just HTTP. Is there a way to bypass this warning and have a shake detection in my app with HTTP connection?</p>