cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lisa Seacat DeLuca (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-7582) Cordova W3C Battery Alignment - handle when battery can't be reported
Date Thu, 18 Sep 2014 16:40:34 GMT

     [ https://issues.apache.org/jira/browse/CB-7582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lisa Seacat DeLuca updated CB-7582:
-----------------------------------
    Description: 
JIRA parent issue: https://issues.apache.org/jira/browse/CB-6065 
Cordova documentation: https://github.com/apache/cordova-plugin-battery-status/blob/master/doc/index.md

w3c spec: http://www.w3.org/TR/battery-status 

Gap analysis document can be found here: https://docs.google.com/document/d/1mAcjwf39IcIqpIuS-7SzlDxTgk4OebCHae6yfOwnStE/edit?usp=sharing

If the user agent is UNABLE TO REPORT THE BATTERY STATUS (i.e. platform doesn’t support
battery information), then the values MUST be set to default values:
charging = true
chargingTime = 0
dischargingTime = positive infinity
level = 1.0


  was:
JIRA parent issue: https://issues.apache.org/jira/browse/CB-6065 
Cordova documentation: https://github.com/apache/cordova-plugin-battery-status/blob/master/doc/index.md

w3c spec: http://www.w3.org/TR/battery-status 

Battery information should be accessible from navigator.getBattery().  Calling navigator.getBattery
should return a BatteryManager object.  The W3C battery status specification uses promises.


> Cordova W3C Battery Alignment - handle when battery can't be reported
> ---------------------------------------------------------------------
>
>                 Key: CB-7582
>                 URL: https://issues.apache.org/jira/browse/CB-7582
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: Plugin Battery Status
>            Reporter: Lisa Seacat DeLuca
>
> JIRA parent issue: https://issues.apache.org/jira/browse/CB-6065 
> Cordova documentation: https://github.com/apache/cordova-plugin-battery-status/blob/master/doc/index.md

> w3c spec: http://www.w3.org/TR/battery-status 
> Gap analysis document can be found here: https://docs.google.com/document/d/1mAcjwf39IcIqpIuS-7SzlDxTgk4OebCHae6yfOwnStE/edit?usp=sharing
> If the user agent is UNABLE TO REPORT THE BATTERY STATUS (i.e. platform doesn’t support
battery information), then the values MUST be set to default values:
> charging = true
> chargingTime = 0
> dischargingTime = positive infinity
> level = 1.0



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message