> Does this API avoid the problems described in https://groups.google.com/forum/#!topic/mozilla.dev.platform/45XApRxACaM ?
Which specific issues? The API in the specification is promise ready by using the permissions API, is behind a permission prompt and requires a secure context. My understanding is that there hasn't been a rework of the orientation specification in regards to the Generic Sensor API but there has for Ambient Light. We could trial this for Ambient Light perhaps, given that we want to remove the other implementation? On Thu, Nov 2, 2017 at 5:14 PM, Boris Zbarsky <[email protected]> wrote: > On 11/2/17 12:54 PM, [email protected] wrote: > >> note: Chrome 63 does support it in it early version already >> > > I should note that this is slightly misleading. According to > https://groups.google.com/a/chromium.org/forum/?utm_medium= > email&utm_source=footer#!msg/blink-dev/2zPZt3watBk/M4qcI8wlBwAJ Chrome is > doing an experiment, in which they will support this API in versions 63-65 > only, as an origin trial, after which the experiment will end. > > If someone likes to see a code snipped how it can be used with google's >> cardboard to detect the magnetic "button", I provided something at >> https://stackoverflow.com/questions/40270350/detect-google- >> cardboard-magnetic-button-click-in-javascript >> > > Right, as this post notes it's disabled by default unless you force-enable > it or participate in the origin trial. I'm not sure why your mail was > worded to make it sound like Chrome 63 shipped actual support.... > > > -Boris > > _______________________________________________ > dev-platform mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-platform > _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

