W3C home > Mailing lists > Public > public-device-apis@w3.org > July 2014

RE: [battery] getBattery() vs. requestBattery() pattern

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Tue, 1 Jul 2014 21:23:24 +0000
To: Rick Waldron <waldron.rick@gmail.com>
CC: "public-device-apis@w3.org" <public-device-apis@w3.org>, Alex Russell <slightlyoff@google.com>
Message-ID: <1404249805517.33907@domenicdenicola.com>
> The Battery Status API doesn't require user permission to access the battery:  https://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html#security-and-privacy-considerations   

Right; in general we are pretty much done with infobar-style permission asks, as a platform. But we can still use the requestAccessToX().then(gotAccess, didntGetAccess) style even if getting access is not done as the result of an infobar. Perhaps you get access if you declare the need in a manifest, or if you're transported over HTTPS, or you get it by default but the user can toggle it off on a per-webpage basis. The user-facing API can still be uniform.
Received on Tuesday, 1 July 2014 21:23:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:33:10 UTC