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

> According to an [article](https://medium.com/@firt/pwas-on-ios-12-2-beta-the-good-the-bad-and-the-not-sure-yet-if-good-a37b6fa6afbf#1e1f) discussing iOS 12.2 beta features:
> 
> > * Accessing sensor APIs is now disabled by default, so no accelerometer, gyroscope or magnetometer APIs are working unless the user enables a Settings option under “Safari”
> 
> Assuming this beta feature will ship in stable (edit: it will according to the [release notes](https://developer.apple.com/documentation/safari_release_notes/safari_12_1_release_notes)), 

[...]

I've seen quotes from earlier in the day from the release note page including a sentence that the option to allow sensor events would be disabled by default. Looking at the link now, there is no comment about the default state of these options. @anssiko can you confirm this was explicitly specified before? Anyone from the Safari team care to clarify?

The worry of this change is it buries the option in the settings without even offering a permissions API to the browser. I'm on the AR/VR use case side and think a permission prompt perfectly acceptable. However having to direct users to some obscure part of the settings app to enable this option definitely seems a step too far which will be damaging for the web.

My hope is Apple/Safari have decided to keep the setting enabled by default in 12.2. That will give time to finalise the permission model without breaking web content, but still give the privacy conscious the opportunity to disable globally.

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

Received on Friday, 1 February 2019 22:19:20 UTC