Post on 29-Jan-2018
After HTML5
Sweet lets hack!
YAY!!
I love the dentist!!
FUCK NO!
Device APIs
Making computers more aware.
@brianlerouxhttp://westcoastlogic.com
work at http://nitobi.com
sometimes on http://phonegap.com
web, mobile, mobile web geek
HTML5!!!
localStorageindexedDBCACHE MANIFESTpushStatedata-*sockets?Canvas Videogeodrag’n’dropoffline eventsweb workersaudionew elements...
installable web apps
CACHE MANIFESTlocalStorageIndexedDB
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
sensorsdata persistenceouts
Sensors
camera
magnometer
gps
gyroscope
accelerometer
Data
contactsmedia locations
...anything a sensor may log?
sensors are async events
data is sorta CRUD or REST
*perfect* for JS
vibrationspeakers
lightsscreen(s)
Device Outputs
traditionallycomputers 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
implGoogle Gears!
Nokia WRTVodaphone Widgets
BlackBerry WebWorksQtMobilityHP webOS
Samsung BadaPhoneGap
aka W3C Device API Working Group formed in 2009 clear influence from BONDI
DAP
aka W3C Device API Working Group formed in 2009 clear influence from BONDI
DAP work to dateContactsCalendarMedia CaptureMessagingBattery StatusNetwork InfoSystem InfoPermissionsGalleryDevice InterfaceApp LauncherTasks
API or App?ContactsCalendarMedia CaptureMessagingBattery StatusNetwork InfoSystem InfoPermissionsGalleryDevice InterfaceApp LauncherTasks
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 accelerometerorientationcameradevicestatusfilesystemmessaginggeolocationpersonal informationcontactcalendartaskdeviceinteration
deviceapis
accelerometer
just for contrast..
orientation
just for contrast...
camera
YOU GET THE IDEA
filesystemgeospatial
notificationswidgets
mobile dev
operating systems
sdks
devices