Hi Zibi, I think we didn't calculate battery charging remaining time, there are only two values, kUnknownRemainingTime and kDefaultRemainingTime. http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkHal.cpp?from=GonkHal.cpp&case=true#590-595 I filed a bug for further discussion, *Bug 1116368* <https://bugzilla.mozilla.org/show_bug.cgi?id=1116368> - [Battery] Implementation of battery charging remaining time
Best regards, Danny 2014-12-27 10:08 GMT+08:00 Zibi Braniecki <[email protected]>: > Hi, > > I'm experimenting with using W3C Battery API for displaying information > about charging time on the lockscreen. It works great on Firefox desktop, > but on Flame, using master B2G I always get chargingTime: Infinity. > > Is there a reason we don't support that data or just a missing feature? > > zb. > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g >
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
