Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4520

"batterylow" and "batterycritical" events while device is charging?

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            purplecabbage Jesse MacFadyen
            dinglemouse Peter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment