What are custom tabs?

Another alternative to webview is the chrome custom tab, which has similar behavior and can support the expected experience, even has a few advantages in terms of UX and a flutter library.

Custom Tabs is a browser feature, introduced by Chrome, that is now supported by most major browsers on Android. It gives apps more control over their web experience and makes transitions between native and web content more seamless without having to resort to a WebView.

Custom Tabs allow an app to customize how the browser looks and feels. An app can change things like:

Custom Tabs also allow the developer to pre-start the browser and pre-fetch content for faster loading.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/831138e6-d09d-49d3-9ab7-7c46b256883a/Untitled.png

When should we use Custom Tabs vs WebView?

The WebView is good solution if you are hosting your own content inside your app. If your app directs people to URLs outside your domain, we recommend that you use Custom Tabs for these reasons: