[ 
https://issues.apache.org/jira/browse/CB-4520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13998307#comment-13998307
 ] 

ASF subversion and git services commented on CB-4520:
-----------------------------------------------------

Commit b5b80a6ff80d3c8b3d7618fe051c824ec0d3771f in cordova-mobile-spec's branch 
refs/heads/master from [~purplecabbage]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-mobile-spec.git;h=b5b80a6 ]

CB-6695 Added tests to verify CB-4520 + CB-4519


> "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: Jesse MacFadyen
>            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 was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to