android-browser-helper
android-browser-helper copied to clipboard
Where are the promised API for choosing a custom tabs provider?
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"?
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).