android-browser-helper icon indicating copy to clipboard operation
android-browser-helper copied to clipboard

Where are the promised API for choosing a custom tabs provider?

Open childnode opened this issue 3 years ago • 1 comments

It contains default implementations of many of the common tasks a developer will find themselves requiring, for example:

  • Creating a Launcher Activity that simply launches a Trusted Web Activity.
  • Code for choosing an appropriate Custom Tabs provider.
  • Creating an Activity to launch the browser's site settings for a TWA.

ok ... can someone point out where I could find that Interfaces to use the promised "code for choosing an appropriate Custom Tabs provider"?

childnode avatar Feb 26 '21 01:02 childnode

Have you checked out TwaProviderPicker? Despite the name, it should also work for Custom Tabs, as package name supporting LaunchMode.TRUSTED_WEB_ACTIVITY will also support LaunchMode. CUSTOM_TAB (one is a superset from the other).

andreban avatar Feb 26 '21 15:02 andreban