After HTML5
Sweet lets hack!
YAY!!




I love the dentist!!
FUCK NO!
Device APIs




Making computers more aware.
@brianleroux
      http://westcoastlogic.com

      work at http://nitobi.com

      sometimes on http://phonegap.com

      web, mobile, mobile web geek
HTML5!!!
localStorage
indexedDB
CACHE MANIFEST
pushState
data-*
sockets?
Canvas
Video
geo
drag’n’drop
offline events
web workers
audio
new elements...
installable web apps
CACHE MANIFEST
localStorage
IndexedDB
installable web apps

- access via a bookmark / shortcut
- no browser chrome
- http://silentconversation.com/cod
Apple Extensions
widgets, perhaps
device apis?
why yes, that is capitalized
why yes, that is capitalized
BlackBerry webview
BlackBerry webview
// you can’t make this stuff up!
THIS IS WHY WE CAN’T
 HAVE NICE THINGS
matters not
Network Info
Device APIs



              sensors
              data persistence
              outs
Sensors




camera

magnometer

gps

gyroscope

accelerometer
Data

contacts
media
locations




...anything a sensor may log?
sensors are async events
data is sorta CRUD or REST
*perfect* for JS
Device Outputs




vibration
speakers
   lights
screen(s)
traditionally
computers had screens, keyboards and mouse
what is a mobile device?
phones, no shit
tablets
perhaps laptops
cars move, eh
The nicest thing about
standards is that there are
so many of them to choose
from.


           - Andy Tanenbaum
‣ W3C
 - DAP
 - Geospatial
 - Notification
 - Widgets
‣ WAC
impl
     Google Gears!
        Nokia WRT
Vodaphone Widgets
        BlackBerry
        WebWorks
        QtMobility
        HP webOS
    Samsung Bada
        PhoneGap
DAP



 aka W3C Device API Working Group
 formed in 2009
 clear influence from BONDI
DAP work to date
Contacts
Calendar
Media Capture
Messaging
Battery Status
Network Info
System Info
Permissions
Gallery
Device Interface
App Launcher
Tasks
API or App?
Contacts
Calendar
Media Capture
Messaging
Battery Status
Network Info
System Info
Permissions
Gallery
Device Interface
App Launcher
Tasks
Device
Contacts
Calendar
Media Capture




  * http://docs.phonegap.com are not current here
Media Capture Cont.
Bonus: File API
Messaging


   sms://
   mms://
   mailto://
Battery Status
Gallery
App Launcher
Security, like
correctness, is not an
add-on feature.


           - Andy Tanenbaum
Permissions / Privacy


 http://bit.ly/fQ574O & http://bit.ly/hsJSO3
WAC
WAC current work...

deviceapis
accelerometer
orientation
camera
devicestatus
filesystem
messaging
geolocation
personal information
contact
calendar
task
deviceinteration
deviceapis
accelerometer
just for contrast..
orientation
just for contrast...
camera
YOU GET THE IDEA
filesystem
 geospatial
notifications
  widgets
http://github.com/brianleroux/hi5
mobile dev
operating systems
sdks
devices
http://docs.phonegap.com




thx!

After HTML5 Mobilism 2011