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

Android Instant Apps - An Introduction

Android Instant Apps - An Introduction

This talk covers a very basic introduction about Android Instant Apps, focusing more on the experience and its product side and less on its technical challenges.

It tries to overview how are they implemented, why are they important and which use cases should be covered.

Filipe Mendes

January 10, 2018
Tweet

More Decks by Filipe Mendes

Other Decks in Technology

Transcript

  1. 1 2

  2. 1 2

  3. Vimeo increased session 
 duration by 130% Jet increased conversion


    rate by 27% NY Crosswords 2x number of sessions
 per user
  4. dotloop 62% increase in users
 who sign a document Onefootball

    # users who read news 
 and share content 
 increased 55% realtor.com 2x number of leads 
 per property listing 
 details pageview.
  5. II - Adding Instant App Topeka APP Phone & Tablet

    Topeka-Base Feature Topeka-InstantApp Instant App
  6. II - Adding Instant App Topeka APP Phone & Tablet

    Topeka-Base Feature Topeka-InstantApp Instant App
  7. IV - Multi-Feature Topeka APP Phone & Tablet Topeka-Base Feature

    Topeka-InstantApp Instant App Feature #1 Feature #2
  8. IV - Multi-Feature Topeka APP Phone & Tablet Topeka-Base Feature

    Topeka-InstantApp Instant App Feature #1 Feature #2
  9. IV - Multi-Feature Topeka APP Phone & Tablet Topeka-Base Feature

    Topeka-InstantApp Instant App Feature #1 Feature #2
  10. Use Cases “Instant Apps are driven by actions and should

    be available to users right when they are needed.”
  11. Use Cases 
 “Instant Apps should focus primarily on helping

    users complete whatever task they set out to do with as little friction as possible, not drive full app installs.”
  12. Unsupported Features • Long-running background services • Manifest-registered broadcast receivers

    • Externally accessible content providers • Re-engagement notifications
  13. Security • During development you need to prove that you

    own the domain through some .json configuration files. • The Instant App has limited access to handheld device-spec info, fe. MMI, Mac address, etc. • Access is denied automatically, so even as a developer, you cannot get access to this data. • However, you will have full access to Android ID and Ad ID.
  14. Publishing • Code signing • Well formatted Intent Filters for

    proper deep linking • Each feature module plus the base module needs to be below 4mb.
  15. APK Size Reduction • Refactor the codebase • Remove unused

    resources • Use more efficient file formats like WebP. • Download assets at runtime, if it makes sense and if possible. • Review internal/external libraries
  16. Other concerns • The user state should be kept after

    the app gets installed. • Proguard may need to be reconfigured. • Injected dependencies may need some adjustments. • It can be challenging to move from a custom layered architecture to an Instant App ready architecture.
  17. “Reserve time for developing the instant app and stop developing

    features during this time. This makes refactoring and moving code a lot easier. It took us about 4–5 weeks for a first releasable version.”
  18. 1 2

  19. 1 2

  20. 1 2

  21. 1 2

  22. References General • https://developer.android.com/topic/instant-apps/guides/index.html • https://medium.com/inloop/android-instant-apps-part-2-7bebb74fa7bb • https://techbeacon.com/how-deploy-android-instant-apps-web-apps-take- native-apps •

    https://speakerdeck.com/cyrilmottier/introduction-to-android-instant-apps • https://developer.android.com/topic/instant-apps/overview.html • https://www.youtube.com/watch?v=cosqlfqrpFA • https://developer.android.com/stories/index.html • https://developer.android.com/topic/instant-apps/ux-best-practices.html Reducing APK size • https://android-developers.googleblog.com/2017/08/android-instant-apps- best-practices-for.html • https://speakerdeck.com/pareshmayani/generating-efficient-apk-by-reducing- size-and-improving-performance • https://developer.android.com/topic/instant-apps/prepare.html • https://developer.android.com/topic/performance/reduce-apk-size.html
  23. References Developer Stories • http://rea.tech/building-the-realestate-com-au-android-instant-app/ • https://willowtreeapps.com/ideas/an-introduction-to-android-instant-apps • https://medium.com/jet-stories/make-your-app-instant-33855ab5d02b •

    https://medium.com/vimeo-engineering-blog/vimeo-android-instant- apps-2f8b1e94760c • https://tech.ticketmaster.com/2017/05/18/ticketmaster-demonstrates-cutting- edge-android-instant-apps-technology-at-google-io/ • https://medium.com/nos-digital/some-useful-insights-on-instant- apps-67cc7d177695 • http://tech.domain.com.au/2017/06/making-the-domain-android-app-instant- ⚡/ • https://tech.buzzfeed.com/from-westinghouse-to-android-instant- apps-60fbfaca4ebe Codelab • codelabs.developers.google.com/codelabs/android-instant-apps
 Cover • https://goo.gl/m4ovQ4