Re: [deviceorientation] Add API for requesting permission to receive device motion / orientation events (#57)

So if I understand correctly, it would look like:
navigation.permissions.request({ name: “gyroscope” }); // For DeviceOrientationEvents
navigation.permissions.request({ name: “accelerometer” }); // For DeviceMotionEvents

This does not look bad actually.

-- 
GitHub Notification of comment by cdumez
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/57#issuecomment-447128094 using your GitHub account

Received on Thursday, 13 December 2018 21:32:25 UTC