Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
Home > News > Editor Blogs > Web

February 8th, 2012, 00:15 GMT · By

BLOG

Web Apps Can Access Battery Info via Firefox's Battery API

SHARE:

Adjust text size:

Firefox's Battery API, part of WebAPI is ready for testing Enlarge picture - Firefox's Battery API, part of WebAPI is ready for testing
Mozilla has a rather ambitious plan with WebAPI, it wants to enable web apps to leverage capabilities and features exclusive to native apps so far. The idea is to enable applications built with web technologies to access features such as a phone's dialer, the accelerometer or even battery status.

It's part of the greater Boot to Gecko project, but the API should benefit all web applications regardless of platform, as long as it is implemented.

Development on the WebAPI is coming along nicely, several of its components are already built with others on the way. The Battery API, for example, can already be tested.

"Detecting battery level in a device or computer can help you inform the user of the current status. Within Mozilla’s WebAPI, we have the Battery API to offer that possibility," Mozilla explained.

The full code for testing the feature is available in the post. The feature works in Firefox for Android, only in the Aurora, for Windows and for Linux.

FILED UNDER:
Mozilla
Firefox
WebAPI

TELL US WHAT YOU THINK:

796 hits · Link to this article · Print article · Send to friend · Subscribe to news

MUST-READ RELATED ARTICLES:


Firefox 10 Beta Is Here, What You Need to Know

Firefox 10 Is Here, New Features Rundown

What's New in Firefox 10 Beta for Developers

Firefox 10 Debuts a Fullscreen API for Video, Games and Aps

Full-Screen API, Gamepad Support in Firefox Make HTML5 Games a Reality

READER COMMENTS:



No user comments yet.
Be the first to express your opinion!
Copyright © 2001-2012 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM