Closed JuancaG05 closed 11 months ago
This is working as intended. The docs https://developer.chrome.com/docs/android/custom-tabs/guide-partial-custom-tabs/?cmdf=custom+tabs+partial+custom+tab also mention that you either need to pass a session or use startActivityForResult.
Message ID: @.***>
Describe the bug The Custom tab is not appearing in a bottom sheet although an initial activity height is specified in the
CustomTabsIntent.Builder
through thesetInitialActivityHeightPx()
method. It does appear in a bottom sheet but ONLY when the builder is constructed with aCustomTabsSession
. I don't know if this is expected or not, but it says nothing about it in the docs as far as I could find.To Reproduce Steps to reproduce the behavior:
CustomTabsIntent.Builder
with no params (not associated to a session, using [this](https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabsIntent.Builder#Builder()) constructor).setInitialActivityHeightPx()
method over the builder just created.CustomTabsIntent
and launch a URL in the Custom tab via thelaunchUrl()
method.Expected behavior The Custom tab should appear in a bottom sheet with the specified height in step 2.
Did this ever used to work It's the first time I use this, and I see this working with
CustomTabsSession
in this same repo, but not without it.Screenshots No need screenshots here.
Code Snippets
Smartphone (please complete the following information):