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

You've put up a good fight, @richtr, but at this point I would like to see consensus and a proposal around a permissions API along the lines of what has been discussed, such as `DeviceOrientationEvent.requestPermission()` and `DeviceMotionEvent.requestPermission()`

Apple/WebKit aren't going to change their minds on this. iOS 12.2 is going to ship with device orientation/motion disabled by default. We need to expedite the process of formalizing an API so that future versions of iOS can ship with it. If we move quickly, maybe even iOS 12.2 could have this implemented.

The longer we deliberate, the longer we’ll have to put up with dialogs from developers such as `"Orientation is disabled. Please enable in Settings > Safari > Motion & Orientation Access."`, which is a terrible UX. A dialog such as `"example.com would like to access device orientation. Don’t Allow/OK"` would be totally fine for engaged users.

I say this as a developer of a VR-like web experiences. This is a breaking change, but a necessary one. Access to an API is better than no API at all.


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

Received on Saturday, 2 February 2019 09:29:03 UTC