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

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