W3C home > Mailing lists > Public > public-device-apis-log@w3.org > February 2019

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

From: Paul Neave via GitHub <sysbot+gh@w3.org>
Date: Sat, 02 Feb 2019 09:29:00 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-459950463-1549099739-sysbot+gh@w3.org>
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:01 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 2 February 2019 09:29:02 UTC