Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Bridging the Phonegap

Dan Slack
February 19, 2013

Bridging the Phonegap

An introduction to Mobile web and Phonegap

Dan Slack

February 19, 2013
Tweet

More Decks by Dan Slack

Other Decks in Programming

Transcript

  1. Agenda • Mobile Web Applications • What is Phonegap? •

    Phonegap APIs • Extending Phonegap • Design Considerations
  2. Mobile Web • We can use our existing skillsets •

    Leverage HTML5 APIs (Geolocation, storage, etc.) • Evergrowing W3C Standards • What is Mobile Web?
  3. Mobile Web • Mobile device detection ◦ server-side vs client-side

    • Testing ◦ User Agent switching ◦ Resolution changes • About Ripple Design Considerations:
  4. What is Phonegap? (aka Apache Cordova) • Near write-once, run-anywhere

    on mobile • Write using HTML5/CSS3/JS stack • A bridge between native and web layer • Some history...
  5. What is Phonegap? • Phonegap uses the native layer •

    We can open and test in native environment • Native environment for each OS • Phonegap Build and Debug • Ripple Issues - http://bit.ly/XPhts2
  6. Better than the Web? Mobile web can handle many scenarios,

    but... • Monetization • Access to native APIs ◦ Calendar, Contacts ◦ Compass, Accelerometer, Camera • Visibility
  7. Phonegap Plugins • Phonegap has many APIs ◦ And growing...

    • Plugin framework for extra features not covered • Phonelistener, BarcodeScanner, NFC, more
  8. Final Considerations • Resolutions, platform limitations ◦ http://mobilehtml5.org/ • Use

    Performance Tricks ◦ document.createDocumentFragment ▪ http://bit.ly/zZ4m9L ◦ reduce closures, avoid for-in ◦ http://bit.ly/c26sdW • JS Frameworks ◦ size