Re: [dap-charter] Any new sensor API? (#4)


>For some background, the hinge angle sensor as described in the Android documentation.

Fold Angle Sensor is added to the [draft charter proposal](

> Barometer altitude (if the device has barometer)

Here's how I unpack this, clarifications welcome:

Using GPS the method to measure altitude is called [trilateration]( This method has restrictions as outlined in the article. To get more precise altitude readings, some (or most modern mobile?) devices include [barometric altimeter]( that measures the atmospheric pressure.

I think the proposal is to allow web developers to request "high precision altitude". This could be addressed by allowing developers to pass a flag upon instantiation of the GeolocationSensor, for example (note: this approach has caused interop issues in the past, see PositionOptions.enableHighAccuracy in Geolocation API). This would be already in scope, no changes required in the charter to pick up this work.

If, OTOH, there are reasonably mainstream use cases for requesting altitude _alone_ without lat/long, it'd make sense to split that feature into a separate sensor type to enable better privacy protections (users could grant access to altitude alone, and not lat/long). Also we need to understand  implementability (i.e. do platforms allow requesting just altitude), initial assessment suggests some platforms do expose this sensor type separately.

cc @karianpour

GitHub Notification of comment by anssiko
Please view or discuss this issue at using your GitHub account

Received on Wednesday, 1 April 2020 09:01:32 UTC