Diving into the Device API
steele.blue·650w
Preview
Report Post

Jun 19, 2013

I recently read Tim Wright’s article on A List Apart detailing the Device API; a collection of W3C standards that let you obtain access to a number of hardware sensors.

I found this fascinating, and had to try them out. Here’s what I’ve learned.

Note: for most of these demos, you’ll want to try them out in specific browsers (either Android Firefox or iOS Safari); as of today, browser support is limited. The most up-to-date information on browser implementation is on this page.

All demo code is available on GitHub.

Battery Status

[View Demo (works in Android Firefox)](http://…

Similar Posts

Loading similar posts...