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

Finding the sweet spot - blending the best of n...

Finding the sweet spot - blending the best of native and web

A presentation on when it makes sense to build native interfaces vs web interfaces, and how to get them to work together.

Avatar for Shawn Jansepar

Shawn Jansepar

January 29, 2016

Other Decks in Programming

Transcript

  1. Finding the sweet spot - blending the best of native

    and web Shawn Jansepar @shawnjan8
  2. "The biggest mistake that we made, as a company, is

    betting too much on HTML5 as opposed to native…" - Mark Zuckerberg
  3. “For areas within the app where we anticipate making changes

    more often, we will continue to utilize HTML5 code, as we can push updates server side without requiring people to download a new version of the app” - Jonathan Dann (Facebook Engineer)
  4. "The biggest mistake that we made, as a company, is

    betting too much on HTML5 as opposed to native a particular technology rather then focusing on the experience…" - Mark Zuckerberg
  5. Why Web Interfaces? • Runs on every modern operating system

    • Deploy without app update Why Native Interfaces? • Performance.
  6. +

  7. We need a “Maybe write once maybe run- everywhere it

    really depends on the feature” approach
  8. Building “app-aware” responsive websites • Take “progressive enhancement” to the

    next level • Detecting the “app” context in three places: • “app” class in CSS • isRunningInApp method in JS • “ App” appended to user agent for server-side logic
  9. Why Web Interfaces? • Runs on every modern operating system

    • Deploy without app update Why Native Interfaces? • Performance.
  10. Web + Native • Runs on every modern operating system

    • Deploy without app update • Performant
  11. Astro - the “Native” Hybrid SDK built on top of

    Cordova http://astro.mobify.com/
  12. Top 3 WebView Performance Tips • Remove transform: translate3d in

    Android 4.4.2 (or use Crosswalk) • Change WebView deceleration rate to UIScrollViewDecelerationRateNormal • Use fast click, not only to make clicks faster, but also to fix a bug in iOS 8.4.1 that causes slow taps to not navigate