Hi guys, I made some research about the Battery Status API I thought it might be helpful to share here.
In terms of support, it looks like Chrome and Opera already implemented the last W3C specification of the Battery Status API [1], that will be a CR soon [2] In terms of MDN documentation the Navigator.battery [3] should be labeled as deprecated, a new page about the new Navigator.getBattery method [4] has to be added, and the Battery Status API page [5] updated. Some other MDN pages [6][7][8][9] will have to be updated with a note about multiple battery support, as well as the Device API Doc Status [10] and articles and demos [11][12]. I can work on this. Eric, I should be able to attend today's WebAPI meeting. In terms of bugzilla bugs, I'm currently working on implementing the navigator.getBattery() method [13], and found few other bugs to track/face [14][15][16]. There might be some work to do in Gaia as well [17], on tests and tv apps [18]. Francesco <http://www.francesco.iovine.name/> [1] http://caniuse.com/#search=BatteryManager [2] https://dvcs.w3.org/hg/dap/raw-file/default/battery/Overview.html [3] https://developer.mozilla.org/en-US/docs/Web/API/Navigator.battery [4] https://developer.mozilla.org/en-US/docs/Web/API/Navigator.getBattery [5] https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API [6] https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.charging [7] https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.chargingTime [8] https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.dischargingTime [9] https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.level [10] https://developer.mozilla.org/en-US/docs/MDN/Doc_status/API/Device_API [11] https://developer.mozilla.org/en-US/Apps/Build/gather_and_modify_data/retrieving_battery_status_information [12] https://github.com/franciov/low-energy-messenger [13] https://bugzilla.mozilla.org/show_bug.cgi?id=1050749 [14] https://bugzilla.mozilla.org/show_bug.cgi?id=1050752 [15] https://bugzilla.mozilla.org/show_bug.cgi?id=1047119 [16] https://bugzilla.mozilla.org/show_bug.cgi?id=1050746 [17] https://github.com/mozilla-b2g/gaia/search?utf8=%E2%9C%93&q=%22navigator.battery%22&type=Code [18] https://github.com/mozilla-b2g/gaia/blob/b54f50d195232f6022bf140686b9daacda40d291/tv_apps/smart-system/js/battery_manager.js On 13 November 2014 15:08, Eric Shepherd <esheph...@mozilla.com> wrote: > > On Nov 12, 2014, at 6:41 PM, Francesco Iovine <f.iov...@gmail.com> wrote: > > Actually I don't know whether other browsers have implemented the new > navigator.getBattery() method, I assumed none. Do you think it makes sense > to update the documentation now? > > > I think so. Or at least be sure we're flagged on any bugs that involve > changes to the API, using the dev-doc-needed keyword. That will let us do > the updates when time is available. But we always like it when developers > make updates like these, since they're more likely to be technically > accurate. :) > > Eric Shepherd > Developer Documentation Lead > Mozilla Developer Network <https://developer.mozilla.org/> > Blog: http://www.bitstampede.com/ > Twitter: http://twitter.com/sheppy > >
_______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g