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

HTML5 Mobile Web App Development

HTML5 Mobile Web App Development

v3 of the presentation from Charlotte UX, ConvergeSE, and Skookum Tech Talks.

hunterloftis

May 11, 2012
Tweet

More Decks by hunterloftis

Other Decks in Programming

Transcript

  1. Hunter Loftis • Director of Technology at Skookum DW •

    JavaScript nerd • (2001) Print illustration • (2003) Flash animation • (2004) Web design & development • (2006) Web apps • (2012) Mobile apps Friday, May 11, 12
  2. grain of salt: I’m not a mobile expert. I’m a

    JavaScript expert. Friday, May 11, 12
  3. Today, we’ll discuss and distill the lessons learned from these

    experiences into practical guidelines for building mobile HTML5 apps. So? Friday, May 11, 12
  4. Can I build this natively? • You know (or have

    time to learn) the language and APIs. • You can target a single platform. • You have the resources to support and maintain per-platform code bases. • Your audience will commit to your app. Friday, May 11, 12
  5. Why mobile HTML5? • You are a front-end web expert

    (or team). • Support for many current & future devices. • Faster, cheaper dev cycles. • Daily platform improvements for free. • You accept the 50% performance penalty. Friday, May 11, 12
  6. Mobile web, or hybrid? • web: URLs, browser security model,

    and immediate deploys/updates • hybrid: app stores, device security model, and gated deploys/updates • you can do both, but it’s harder than you think. Friday, May 11, 12
  7. Install Stuff • iPhone Simulators (xcode) • Android SDK &

    debugging bridge: • adb logcat browser:V *:S Friday, May 11, 12
  8. 1. Run offline 2. Present this page as an app.

    3. Show icons and startup screens 4. Prompt to install to the home screen. Friday, May 11, 12
  9. 5 Minutes In You have a container, now you need

    content and functionality. Friday, May 11, 12
  10. Debug on real devices. iOS: settings > safari > developer

    > debug console:on Android: browser > “about:debug” Friday, May 11, 12
  11. Use specific forms. email, tel, url, date, number, range* placeholder,

    autofocus, autocorrect, autocapitalize Friday, May 11, 12
  12. Keep it async. A RESTful JSON API over HTTPS is

    cool and full of acronyms. Friday, May 11, 12
  13. • Qs? @hunterloftis or [email protected] • slideshare.net/HunterLoftis/mobile-html5-v2 • github.com/Skookum/mobilehtml5 •

    github.com/hunterloftis/backbone.viewmodel • http://hunterloftis.com/mobile/ • “Safari Web Content Guide” • http://microjs.com/ • http://zeptojs.com/ Friday, May 11, 12