cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Long <>
Subject Re: [FirefoxOS] Started working on CB-5611 battery-status plugin
Date Tue, 11 Feb 2014 20:17:20 GMT
Hey Richard,

I'm from Mozilla and my team is working on the plugins. Thanks for contributing!

I'm not extremely familiar with the battery API, but I doubt you can
change it from clobbers to merges since that affects everyone. Others
on this list need to comment on the difference there, so not sure.

I think there's a way to get the native symbol. Check out the
geolocation plugin:
This code gets the original geolocation object:

var geo = cordova.require('cordova/modulemapper').getOriginalSymbol(window,

Try that out instead of changing config.xml.

Feel free to hop into #apps on and we can help you out over IRC.

- James

On Sat, Feb 8, 2014 at 10:17 AM, Richard Sentino
<> wrote:
> Hello
> I started working on CB-5611 battery-status plugin for FirefoxOS [1]. I
> need help - code, comments, suggestions - before sending a PR [2].
> Also, a note about navigator.battery, clobbering this globally will break
> the default FirefoxOS behaviour which an object of BatteryManager [3].
> Globally setting the action to 'merges' instead of 'clobbers' seems to
> solve the issue [4] - will this worth creating a new Jira issue ?
> My dev environment is both Simulator and a Keon Geeksphone device running
> on B2G
> [1]
> [2]
> [3]
> [4]
> Best,
> Richard

View raw message