Clone this repo:
  1. 809a55c 馃泝 Launch CCT on Null Session. by Peter E Conn 路 8 months ago master
  2. d9aa8b2 馃泝 Point to Android Browser Helper library. by Peter E Conn 路 8 months ago
  3. 91b4a12 馃泝 Use older API when new one isn't needed. by Peter E Conn 路 11 months ago
  4. 7dc51a4 Use dark-mode related APIs in TWAs by Pavel Shmakov 路 11 months ago
  5. 7a2c137 馃 Combine MATCH_DEFAULT_ONLY and MATCH_ALL. by Peter E Conn 路 11 months ago

Chrome Custom Tabs - Examples and Documentation

Chrome Custom Tabs provides a way for an application to customize and interact with a Chrome Activity on Android. This makes the web content feel like being a part of the application, while retaining the full functionality and performance of a complete web browser.

AndroidX

This library is based off (and contains copies of the classes from) the Android Support Library Custom Tabs package. There are known bugs when using custom-tabs-client with AndroidX or with Jetifier (the AndroidX conversion tool). For example, run-time crashes like this bug:

java.lang.IllegalAccessError:
  Method 'android.os.Bundle android.support.customtabs.CustomTabColorSchemeParams.toBundle()'
  is inaccessible to class 'androidx.browser.customtabs.CustomTabsIntent$Builder'
  (declaration of 'androidx.browser.customtabs.CustomTabsIntent$Builder' appears in XYZ.apk)

Please use the Android Browser Helper library instead. It contains the same functionality updated to work with AndroidX.

Examples

Using Custom Tabs should be easy. This repository hosts examples and in-depth documentation. The examples are importable as projects into the Android Studio.

Bugs, Issues and Discussion

We want to hear your feedback! Please create bugs and start discussions using this template. Please use the template for any issues related to the Custom Tabs APIs, their implementation in Chrome, the examples in this repository, and related functionality of the Android Support Library.

Note: we know that the GitHub issue tracker is great! However, since Custom Tabs is mostly driven by Chrome developers, and we want to keep all bugs in one place, we prefer the Chromium issue tracker at the moment.

Contributing

We accept contributions to Custom Tabs examples and documentation. Please see our contributor's guide.