Questions tagged [chrome-custom-tabs]

Chrome Custom Tabs provides a way for an application to customize and interact with a Chrome Activity on Android, to make it a part of the application experience, while retaining the full functionality and performance of a complete web browser.

Documentation: https://developers.google.com/web/android/custom-tabs

GitHub Demos: https://github.com/GoogleChrome/android-browser-helper/tree/master/demos

396 questions
7
votes
0 answers

Custom Tabs keeps opening web browser

I am trying to load a web url by using Custom Tabs. I am using following version of custom tabs implementation 'com.android.support:customtabs:27.1.1' The issue is that it keeps opening chrome web browser instead of custom tabs type layout…
dev90
  • 7,187
  • 15
  • 80
  • 153
7
votes
2 answers

Chrome custom tab gets sometimes stuck at blank screen during login

We recently integrated AppAuth into our application to automate the OAuth2 authorization code flow. When user wants to login, he is first redirected to our auth server, where he proceeds with the login, and then gets redirected back to the…
Smajl
  • 7,555
  • 29
  • 108
  • 179
7
votes
2 answers

Clearing browsing data in chrome custom tab

Is it possible to clear browsing data, cookies, active logins, etc. behind the scenes(programatically) on chrome custom tabs? My goal is to have the user be prompted to login every time they open the custom tab (instead of being logged in…
7
votes
0 answers

Javascript detection of chrome custom tabs

Looking for the following: anything useful in determining if the current page was loaded via chrome custom tabs. Any browser property, user agent, and or function that will tell a user that they're in a chrome custom tab instance with pure…
user2879041
  • 1,077
  • 1
  • 12
  • 25
7
votes
1 answer

Chrome Custom Tabs does not closes on redirection

I am using chrome custom tabs for getting oAuth connection request on the redirection from custom tabs I am redirected successfully in the app. The only problem remains is that the chrome custom tabs do not close on redirection stay in the…
Sutirth
  • 1,217
  • 4
  • 15
  • 26
7
votes
3 answers

Chrome Custom Tab does not go back to app

I have a WebView that loads a HTML with links inside. Those links are opened using Chrome Custom Tabs. Strange scenario: Open Chrome browser Open app Press any link (this will open a Chrome Custom Tab) Press the back button or the "x" button on the…
Luan Barbosa
  • 462
  • 4
  • 16
7
votes
2 answers

Check which url is opened in custom chrome tabs

Is there any function in chrome custom tabs analogous to onPageStarted of Webview. IN onNavigation.. the bundle is always null
user5462975
7
votes
3 answers

Does Chrome Custom Tabs require the user to download the Chrome app?

In order to use Chrome Custom Tabs, do you have to expect your users to download Chrome(Beta) separately, or is it included when you implement Chrome Custom Tabs into your application?
God Usopp
  • 331
  • 1
  • 6
  • 18
7
votes
2 answers

EXIT_ANIMATION_BUNDLE not working with Chrome Custom Tabs

I'm trying to incorporate Chrome Custom Tabs in my app and I'm having difficulty getting the exit animation working. I'm following the docs found here: Link The code I'm using is like the following: String EXTRA_CUSTOM_TABS_EXIT_ANIMATION_BUNDLE =…
MattWilliams89
  • 157
  • 1
  • 15
6
votes
0 answers

Activity blinks after CustomTab closing

I have activity with button. OnClick opens CustomTab: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
6
votes
1 answer

OidcClient2 - Closing IBrowser while waiting for LoginAsync

Currently I am developing a Xamarin App which is using IdentityModel.OidcClient to authenticate against my server, and it is being done using the automatic mode presented on the documentation…
6
votes
1 answer

Chrome Custom Tabs Initial Okta Auth Not Redirecting Back

I'm in the process of implementing SSO on an Android app in which we're using Okta for the identity management while in development. We have Okta set up so that, after the a successful user/password authentication, the user only has to validate…
SBerg413
  • 14,515
  • 6
  • 62
  • 88
6
votes
0 answers

how to set orientation to chrome custom tab in android?

i have given the fix orientation to my app as a portrait.i am using chrome custom tab to open another site, however this property can not be set to chrome custom tab to remain portrait. it change its orientations. in manifest i have set activity…
amit bansode
  • 339
  • 3
  • 14
6
votes
1 answer

Chrome custom tab shows action button outside the toolbar

I want to add an action button to ChromeCustomTabs' toolbar so I followed this tutorial The button is added but, instead of appearing in the toolbar, it appears at the bottom of the activity: This is the code I use to create the Chrome Custom Tab:…
Javier Sivianes
  • 784
  • 1
  • 9
  • 25
6
votes
1 answer

Android Chrome Custom Tabs add Copy Link to options menu

How to add 'Copy link' option to Chrome Custom Tabs options menu in Android. Adding custom menu items in CustomTabs is like this. CustomTabsIntent.Builder customTabsIntent = new CustomTabsIntent.Builder(); String menuItemTitle =…
Rafael
  • 6,091
  • 5
  • 54
  • 79