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
9
votes
1 answer

Chrome Custom Tabs CookieManager

I have a an app that uses cookies to give an authcode to inturn get a token for OAuth flow. I looked on the Android developer site and it says that CookieManager is used with WebView instances. Does that mean Chrome Custom Tabs can not use the…
James ONeal
  • 131
  • 2
  • 4
9
votes
2 answers

Android Chrome custom tabs / Fitbit web API won't redirect if app is already authorized. (OAuth2.0)

I intend on creating a third party fitbit app for alarm synchronizing. However, I have encountered some difficulties regarding the registration of my app, more explicitly on getting the access token even thou my client is already registered to the…
9
votes
1 answer

Is there alternative way to JavascriptInterface of Webview on Chrome Custom Tabs?

I am using JavascriptInterface of Webview. Is it possible on Chrome Custom Tabs? Or Is there alternative method of that?
8
votes
2 answers

Why does Android Chrome update from 61.0.3163.98 to 72.0.3626.76 break OAuth login in Chrome Custom Tabs?

Our production Android application uses Chrome Custom Tabs for OAuth login It was working fine yesterday when Chrome version was 61.0.3163.98 Following an overnight update of Chrome to 72.0.3626.76 the Login process gets stuck in the embedded…
Hector
  • 4,016
  • 21
  • 112
  • 211
8
votes
2 answers

Android: How to set cookie data in Custom Tabs

I need to open a web page in the custom tab. However, the page would obviously require users to log in. We don't want our users to be asked to log in, instead, we want to set cookies with token to CustomTab so that they will be automatically…
Sermilion
  • 1,920
  • 3
  • 35
  • 54
8
votes
1 answer

POST data via CustomTab or Chrome

I want send POST HTTP request via CustomTab or Chrome then show page finally. I many research but no way for it. is there a way? can send POST request via Volley then show response in browser finally?
8
votes
3 answers

facebook login button click fails when facebook app isn't installed

My facebook login button works alright when the facebook app is installed. When the facebook app isn't installed on the device, it crashes my app: E/AndroidRuntime: FATAL EXCEPTION: main …
8
votes
4 answers

Add a listener to Chrome Custom Tab Close button

I have a chrome custom tab, but I want to add a listener to the close (X) button on the upper left corner of the title bar. I want to trigger a callback every time the user clicks on the close button. I was able to do that in a web view, but unable…
Vardaan Sharma
  • 1,125
  • 1
  • 10
  • 21
8
votes
3 answers

Unable to start Chrome CustomTabsIntent in my Android app

I am trying to use Chrome Custom Tabs in my Android application. My MainActivity class extends AppCompatActivity. In onCreate, I invoke startCustomTabs. Below is the code for that: private void startCustomTab(){ CustomTabsIntent intent = new…
Nick
  • 221
  • 2
  • 12
8
votes
1 answer

com.android.support:customtabs: No virtual method launchUrl

java.lang.NoSuchMethodError: No virtual method launchUrl(Landroid/app/Activity;Landroid/net/Uri;)V in class Landroid/support/customtabs/CustomTabsIntent Before everything worked, but today I can see the above error. Why it happens? if something was…
pvllnspk
  • 5,667
  • 12
  • 59
  • 97
8
votes
3 answers

android : open chrome custom tab from fragment

I have one Activity MainActivity. It contains a ViewPager hosting a fragment FragmentPlaceHolder. This fragment has a RecyclerView. Now, on a click of a particular view, say button, inside a RecyclerView item, I want to open a chrome custom tab in…
Chintan Soni
  • 24,761
  • 25
  • 106
  • 174
7
votes
1 answer

Any browser doesn't support custom tabs feature?

I tried opera browser ,opera mini, UC mini, duckduckgo all support custom tabs, just wanna know in 2022 is there any browser still doesn't support custom tabs?
vanshu
  • 537
  • 1
  • 7
  • 17
7
votes
1 answer

Recognize return url inside Chrome Custom Tabs and SFSafariViewController in Flutter

I have a project where customers are redirected to complete a payment request on their bank's url opened in in-app browser (Chrome Custom Tabs on Android or SFSafariViewController on iOS). App is written in Flutter and we uses flutter_inappwebview…
7
votes
0 answers

How can I prevent that a webpage opened using Chrome Custom Tabs launches an App through deep linking?

I am building an android app that on a given page allows the user to open a page on a website. I use chrome custom tabs for that. The code is as follows: String url = ¨https://website_containing_deep_link/¨; CustomTabsIntent.Builder builder = new…
Jos Huybrighs
  • 73
  • 1
  • 5
7
votes
1 answer

What is the new name of ChromeCustomTabs in android x Library?

I cannot find the new library of Chrome Custom Tabs in Android X, what is the library name?