cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Monroy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6838) Battery Plugin needs to be deprecated or fixed
Date Fri, 25 Dec 2015 07:37:49 GMT

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

Jesse Monroy commented on CB-6838:
----------------------------------

[~bowserj] what do you mean when you write "just lead Plugin Battery"? is this a typo? TIA
Jesse

> Battery Plugin needs to be deprecated or fixed
> ----------------------------------------------
>
>                 Key: CB-6838
>                 URL: https://issues.apache.org/jira/browse/CB-6838
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Battery Status
>            Reporter: Joe Bowser
>
> While investigating the Battery Plugin, I've discovered quite a few issues with it that
tells me that this will never actually work:
> 1. This listens to BATTERY_CHANGED.  We can never listen to this Broadcast because the
battery ALWAYS changes and this will drain the battery.  Android explicitly prevents this
event from being listened to in the manifest.
> 2. We don't set up a BroadcastReceiver for BATTERY_LOW, BATTERY_CHARGED
> 3. We have no idea whether the phone is plugged into an AC Adapter or a Computer, this
is important information to have.
> I think that it's probably a good idea for this plugin to be completely re-written.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message