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

iPhone HTML5 Web Apps

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

iPhone HTML5 Web Apps

Avatar for alexspeller

alexspeller

July 04, 2012
Tweet

More Decks by alexspeller

Other Decks in Programming

Transcript

  1. HTTP User Agents   In safari, includes string “Safari”  

    On homescreen, does not   Adjust content based on whether installed yet or not
  2. Homescreen Icon   72x72px & 114x114px png   Bevel added

    automatically   Reference in your <head> with:
  3. Frameworks   jQuery Mobile – widest platform support, not just

    iOS   Sencha touch – good support, hard to get started, more iPhone focused   iUI: iPhone native UI emulation   jqTouch – More iPhone focused, smaller   More…   Jquery mobile is the best compromise when starting out
  4. Fullscreen mode   Hides navigation and address bar when installed

    to homescreen   Status bar can be made grey, black or transparent
  5. Inline Images   Simple to encode on server side  

    Reduce HTTP requests   For articles, package everything into one bit of content that’s easily cached
  6. Cache Manifest   Tells webkit which files to cache offline

      Whitelist some or all network connections   The html file the cache is referenced in included automatically   MUST be served with content type “text/cache-manifest” by your web server
  7. WebDB   SQLite on the client   Really easy  

    5MB by default, up to 50MB with user permission
  8. localStorage   Very simple   Up to 5MB storage on

    iPhone   Simple key value store, string values