fbpx
Chrome Custom Tabs

Chrome Custom Tabs

Android app developers face a choice when they want to display a webpage. They can launch a browser, or build their own in-app browser using WebViews. Both options have challenges, launching the browser is a heavy context switch that isn’t customizable, while WebViews don’t share state with the browser and add maintenance overhead.

Chrome Custom Tabs give apps more control over their web experience, and make transitions between native and web content more seamless without having to resort to a WebView. Chrome cutstom tabs have this smart features.

  • Can control toolbar color
  • Has enter and exit animations
  • Can add custom actions to toolbar and overflow menu

This custom tabs allow developer to pre-fetch content for faster loading.

Why Chrome Tabs are Special?

Android webview works fine if you host your content within the app. Since it has some incompatibilities with javascript and other new languages, chrome tabs offer complete solution for developers. Chrome tabs are special because,

  • Simple implementation
  • Customizable UI
  • Navigation awareness
  • Security
  • Performance optimization
  • Support “Data Savers”
  • Synchronized auto complete across devices
  • Quickly return to the app with single tap
  • Highly customizable

Custom tabs was released recently. It has some issues but this will change the in app browsing very easy for developers. Major drawbacks of this is,

  • Developer can’t get the visited urls
  • Chrome needs to be installed on the device

You can get more information from these links.

Official Website : https://developers.chrome.com/multidevice/android/customtabs

Git Hub : https://github.com/GoogleChrome/custom-tabs-client

Stack Overflow : http://stackoverflow.com/questions/tagged/chrome-custom-tabs

Thank You! Happy Blogging.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top