Windows Phone 8 has a similar subscription model. Notifies when the percentage decreases by 1%.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.phone.devices.power.battery.aspx Joe + Josh Given that the spec states: The definition of how often the chargingtimechange, dischargingtimechange, > and levelchange events are fired is left to the implementation. Couldn't cordova-android-battery just choose to notify on a larger change ... say 5%? @purplecabbage risingj.com On Wed, Jun 11, 2014 at 9:51 AM, Shazron <[email protected]> wrote: > iOS by inspection subscribes to a battery change notification that is part > of the System framework so theoretically it has minimal impact > > On Wednesday, June 11, 2014, Joe Bowser <[email protected]> wrote: > > > So, here's a couple of questions. > > > > 1. Do other platforms have battery problems when they're constantly > > monitoring the level of the battery? Or is this just something the > > Android implementation has problems with? > > 2. If it's just Android, does it make sense for Android to just not > > implement this spec and not have a battery plugin? > > > > I could test out iOS to see if this is also a problem, but I'm > > thinking other people already ran into this by now, right? > > > > On Wed, Jun 11, 2014 at 8:30 AM, Josh Soref <[email protected] > > <javascript:;>> wrote: > > > Joe Bowser wrote: > > >> So, last call for this is on Friday! > > > > > >> Josh, can anyone directly involved send in the -1 to this spec, > > >> or do you have to be involved somehow. > > > > > > It should be an implementer, but Cordova is more or less an > implementer. > > > > > > It's better for someone who actually works on Cordova (e.g. You) than > for > > > someone who is just a user of Cordova. > > > > > >> Otherwise, there's no way that Cordova can implement this on > > >> Android, and we'll be stuck with a plugin that has to be divergent. > > > > > > > http://lists.w3.org/Archives/Public/public-device-apis/2014Jun/0049.html > > > > > > > > > Is the current thread, but you can start your own. If you want more > > > information about how to do this, you can contact Frederick Hirsch (the > > > chair of DAP) directly. > > > > > >
