You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Peter (JIRA)" <ji...@apache.org> on 2013/08/07 08:40:48 UTC
[jira] [Created] (CB-4520) "batterylow" and "batterycritical"
events while device is charging?
Peter created CB-4520:
-------------------------
Summary: "batterylow" and "batterycritical" events while device is charging?
Key: CB-4520
URL: https://issues.apache.org/jira/browse/CB-4520
Project: Apache Cordova
Issue Type: Improvement
Components: CordovaJS, Plugin Battery Status
Affects Versions: 2.9.0
Reporter: Peter
Assignee: Filip Maj
Priority: Minor
User expects to receive battery warnings if the battery is draining and falls below some threshold, but Cordova JavaScript logic does not take the *previous* battery level into account so level === 20 will fire a "batterylow" regardless if charge is going up from 19 to 20 or down from 21 to 20. It seems like an unintended quirk of the implementation, not what user would expect.
See also CB-4519, which is closely related to this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira