New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 135863 link

Starred by 16 users

Issue metadata

Status: Duplicate
Merged: issue 122593
Owner: ----
Closed: Dec 2013
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature

Blocked on:
issue 122593



Sign in to add a comment

Support the Battery Status API

Project Member Reported by bugdroid1@chromium.org, Jul 4 2012

Issue description

Originally reported in http://b.corp.google.com/6203918

(Posted on March 21 2012 12:49 GMT by jknotten)

The battery status API has landed in WebKit:

https://bugs.webkit.org/show_bug.cgi?id=62698

Spec: http://www.w3.org/TR/battery-status/

Relevant Android documentation:
  - http://developer.android.com/training/monitoring-device-state/battery-monitoring.html
  - http://developer.android.com/reference/android/os/BatteryManager.html

Not sure if we can provide a discharge time estimate. Perhaps look into android.os.BatteryStats.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Jul 4 2012

(Posted on April 10 2012 09:48 GMT by jknotten)

Chromium support is being worked on with https://bugs.webkit.org/show_bug.cgi?id=83284
Blockedon: chromium:122593
Project Member

Comment 3 by bugdroid1@chromium.org, Jul 4 2012

Cc: jknotten@chromium.org peter@chromium.org
Cc: klundberg@chromium.org frankf@chromium.org
Labels: WebKit-WebApps Feature-OSIntegration
Status: Available

Comment 6 by peter@chromium.org, Oct 23 2012

Cc: sadrul@chromium.org vinodkr@chromium.org
Labels: -Restrict-View-Google -Pri-3 Pri-2
Opening up this issue. Sadrul is working on ChromeOS support in the following two CLs. The WebKit part has landed already. We should be able to hook this up afterwards.

http://codereview.chromium.org/10024013/
https://bugs.webkit.org/show_bug.cgi?id=90538
Labels: MobileOWP
Owner: miguelg@chromium.org
The APi implementation never made it into chromium unfortunately, in fact it has been disabled on web kit for now.

https://bugs.webkit.org/show_bug.cgi?id=90538 tracks the work to re-enable it. I chatted briefly with sadrul@chromium.org and he is starting to work on it again this week. I'll follow up on that and piggyback on the work he is doing once it's exposed again.

Owner: ----
It seems that this API is dragging along on the WebKit side still. We'll pick it up again once it gains some traction
Project Member

Comment 11 by bugdroid1@chromium.org, Mar 10 2013

Labels: -Area-WebKit -WebKit-WebApps -Feature-OSIntegration Cr-Content Cr-UI-OSIntegration Cr-Content-WebApps
Project Member

Comment 12 by bugdroid1@chromium.org, Apr 6 2013

Labels: -Cr-Content Cr-Blink

Comment 13 by Deleted ...@, Jun 7 2013

Kindly confirm the implementation status of "Battery Status API" in chrome/canary.
I have just noticed that this bug has the tag "OS-Android".

Does this mean that it will only be available on android, or will it be available on all systems that have a battery (e.g. chromebooks, laptops, etc.)?
Labels: -Pri-2 Pri-3

Comment 16 by Deleted ...@, Dec 3 2013

Sorry, but what is a current implementation status of this useful api in chrome/canary? 
Mergedinto: 122593
Status: Duplicate
Merging this into  issue 122593 , which captures the current status and rationalizes why we don't support this.
Components: -UI>OSIntegration Internals>PlatformIntegration

Sign in to add a comment