title: How to get device rotation for iPhone 7 in javascript?
body: <p>I want to get the device rotation for (alpha, beta, gamma) for iPhone 7 and higher. For iPhone 6 this works well for me:</p>
  <pre><code>window.addEventListener('deviceorientation', function(event) {
    console.log(event.alpha);
    console.log(event.beta);
    console.log(event.gamma);
  });
  </code></pre>
  <p>But for iPhone &gt; 6 this event is not triggered anymore. To be clear, i dont want the device orientation (portrait/landscape), I want the rotation. Best case would be absoulte (calibrated) data.</p>
  <p>For Android &quot;deviceorientationabsolute&quot; works well. Is there something similar for the Apple universe?</p>
  <p>Thanks &amp; regards,
  Andreas</p>