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
6
votes
0 answers

Custom Chrome Tab OAuth intercept redirect_uri

I can't seem to figure out how to intercept the redirect_uri that I use with Fitbit OAuth 2.0. Here's the intent-filter that I defined for one of my Activities:
C2H6O
  • 166
  • 2
  • 13
6
votes
2 answers

Closing chrome custom tab

In my use case, I have a page that deep links back to my app. When I open this page in Chrome custom tab, I am able to get back to my app by clicking the deep link but the issue is when I click on the device back button, the chrome tab is still…
Arun
  • 191
  • 1
  • 7
5
votes
2 answers

Can't change Chrome Custom Tabs navigation bar color when running in the Android Emulator

Specifying colors for Chrome Custom Tabs seems a bit wonky. There are three colors you can specify: the toolbar color, "secondary toolbar" color, and navigation bar color. There seem to be two methods to controlling these. One is to set the three…
Chad Schultz
  • 7,770
  • 6
  • 57
  • 96
5
votes
3 answers

What to do when user closes payment browser?

In an Android app, I'm working on, we have a problem regarding payments. When the user wants to place an order, we do an API request that will return a payment URL and a payment ID. The URL is the webpage we will open for the payment, the ID is…
Mark Buikema
  • 2,483
  • 30
  • 53
5
votes
1 answer

Communication between Native App and Chrome Custom Tab (CCT)

When I use Android WebView there are ways to communicate between web-app and native with JS interface call as well as JS Injection call. I wonder if there in any work around to communicate between Android native app and Chrome Custom Tab (CCT) by…
5
votes
1 answer

How to Hide custom tab action bar

Hi i am new to custom tabs i just want to hide action bar. Is there any way to do this any link, code and concept will be appreciated thanks in advance! Here is the code! CustomTabsIntent.Builder intentBuilder = new CustomTabsIntent.Builder(); …
Umer Khan
  • 486
  • 2
  • 11
5
votes
1 answer

Is it possible to get the current URL of a Android Chrome CustomTab in real time?

I am using Chrome customTabs in android and I need to get the current URL in real time, which means once it changed, trigger a callback. I found two things that may be useful. CustomTabsCallback.onNavigationEvent(int navigationEvent, Bundle…
Wang Ye
  • 91
  • 1
  • 9
5
votes
2 answers

How to hide certain actions from the Chrome Custom Tab menu (e.g. the bookmark and download buttons)?

I'm using a Chrome Custom Tab on my app and I'd like to be able to disable a few buttons that pop up automatically when I launch it to open a Google drive file, namely the button for bookmarking the page and the button for downloading it. I've…
5
votes
1 answer

Custom tabs for unhandled applinks

I have implemented applinks to handle all the url's from my domain as follows
5
votes
1 answer

Android : I would like to put Custom Chrome Tab inside a Fragment in an Activity

I have an activity that has a TabLayout. Inside each Tab, there is a Fragment. I want to show different webcontent form a URL in each Fragment. Is this possible ? From what I researched, Chrome Tabs seems to show it on a separate full page by itself…
user8668058
5
votes
1 answer

android.support.customtabs.extra.KEEP_ALIVE

What is the public API to pass on service name for custom tabs? Sample app uses the following and works as expected but i don't see it in official documentation.…
Vairavan
  • 1,246
  • 1
  • 15
  • 19
5
votes
1 answer

Progressive Web App in Chrome Custom Tab

I am building a Progressive Web App. When I open it in the Chrome browser, I correctly see the "add to home screen" option come up in a bottom sheet. However, when I open my app in a Chrome Custom tab, the "add to home screen" bottom sheet is not…
5
votes
1 answer

Android Chrome custom tabs fallback

I am implementing fallback chrome custom tabs I was referring to few links it has some custom fallback implementation. I didn't get why it is required. I did following for handling fallback and is working fine. try { …
5
votes
0 answers

Chrome Custom Tabs - different default browser

Is it possibly to use Chrome Custom Tabs in an app, even when a different browser is set as the default one? For example my default browser is Firefox, but my app should still open links in Chrome Custom Tabs.
Oudstand
  • 179
  • 3
  • 12
5
votes
1 answer

How to launch any URL into Chrome Custom Tab as non-logged in

I have an android sample app where I want to open any URL into Chrome Custom Tab instead of WebView. I am trying from https://developer.chrome.com/multidevice/android/customtabs and able to do this. Here I'm facing a problem and that is - If I…
mdrafiqulrabin
  • 1,657
  • 5
  • 28
  • 38