W3C home > Mailing lists > Public > public-device-apis-log@w3.org > November 2016

Re: [sensors] Should we request permission when sensor is not supported by the platform?

From: Lukasz Olejnik via GitHub <sysbot+gh@w3.org>
Date: Mon, 14 Nov 2016 22:14:25 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-260480661-1479161664-sysbot+gh@w3.org>
I recommend to request a permission prior to any attempt leading to 
accessing of a default sensor - and currently, "any sensor". 
Regardless of the sensor's existence. 
Web developers currently have standard ways of checking whether a 
feature is available: https://w3c.github.io/sensors/#feature-detection

I think that the current Generic Sensors API won't be shipping a 
sensor discovery API anyway? 

I'd say just write it down in the spec and let's see once it's down 
there.




-- 
GitHub Notification of comment by lknik
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/145#issuecomment-260480661 using
 your GitHub account
Received on Monday, 14 November 2016 22:14:36 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:53 UTC