W3C home > Mailing lists > Public > public-device-apis@w3.org > December 2011

Re: no longer possible to detect battery presence? RE: Battery API in Last Call

From: Josh Soref <jsoref@rim.com>
Date: Fri, 2 Dec 2011 19:59:58 +0000
To: "dzung.d.tran@intel.com" <dzung.d.tran@intel.com>
CC: "public-device-apis@w3.org" <public-device-apis@w3.org>, "public-device-status@w3.org" <public-device-status@w3.org>
Message-ID: <957F1ECDA90E004B8DBDE23CFC94E3A311650F9C@XMB103ECNC.rim.net>
Tran wrote:
> This is a battery spec, so you would only use it if it is on a mobile device. One can use User agent string to determine if you are on a mobile device.

UA sniffing is a *disaster*. And some UAs want to run consistently on both desktop and mobile devices. There isn't a proper way to sniff for mobile browsers and typically there are a bunch of reasons people try to sniff for them. Usually it's because they're weak or want to serve dated content pinned to year X. When a new browser comes across the site, nothing works. This is *not* the model we want.

This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
Received on Friday, 2 December 2011 20:00:52 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:52 UTC