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

Webview when reach the url I want then open custom tabs

How to do that when in google.com and click a link to other website open as custom tabs String url = "https://www.google.com/"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Meow
  • 141
  • 9
0
votes
0 answers

How to get cookies from custom tab in Android

I want to fetch cookie from custom tab when button is clicked in browser. Is there any way to get this in Android.
Ragini
  • 332
  • 1
  • 4
  • 16
0
votes
0 answers

How to share localStorage data between Chrome Browser (or Chrome Custom Tabs - CCT) and WebViews?

I have an Android app with a WebView which loads multiple URLs with links. Some of these URLs are opened in a Chrome Browser (or Chrome Custom Tabs) and these loaded pages write to localStorage using window.localStorage.putItem("someKey",…
0
votes
1 answer

Adding cookies to Custom Tabs in Android

I'm trying to pass a cookie to custom tabs like in webview so that the user doesn't have to login, I've seen other questions but all of them were 6+ years old so I'm wondering if it's possible to do that now. Did they implement a direct way to pass…
0
votes
1 answer

How to get "open with" prompt for Custom tabs instead of always opens up in the default browser

Custom Tabs always opens links in the default browser and beats the purpose of using it for SSO providers. My enterprise has a browser application that can provide sso functionality but when the other native applications open up the sso url in…
swdev123
  • 43
  • 5
0
votes
2 answers

Can we restrict screen capture using secure flag for chrome custom tab in android?

I am using chrome custom tab to display data in one screen. But data is sensitive and need to protect it by disabling screen capture functionality of devices. It would be great help if any one could explain me how can I achieve this requirement for…
0
votes
1 answer

Hide the location bar in Chrome Custom Tabs in MAUI

So that I don't ask the wrong question, my end goal is to build a PWA that is accessible from Android 5.x and up now and iOS later in the year. The main problem with this is Classic Bluetooth is not yet stable/standardized enough for the web. My…
thinkOfaNumber
  • 2,581
  • 3
  • 27
  • 46
0
votes
1 answer

Callback on successful login for sso on chromeCustom tab

I am using CCT for sso Login.now once the login is successful, the cct is not coming back to app. Suppose the success url contains "com.example.success://hello/success" m adding data as
stack Learner
  • 1,318
  • 3
  • 18
  • 35
0
votes
1 answer

Chrome Custom Tab support in capacitor

Is there any way to make Browser Tab work with a capacitor react project. I found that it's supported in ionic. I'm relatively new to ionic and capacitor. I'm trying to use this ionic plugin in my react…
Viraj Singh
  • 1,951
  • 1
  • 17
  • 27
0
votes
1 answer

Error on load Chrome Custom Tab in Android 11

Chrome custom tab work in every other device. Only error in Android 11. Here is my code how I put I code in my app. ImageView adCustomBannerImage= findViewById(R.id.adCustomBannerImage); adCustomBannerImage.setOnClickListener(new…
TexD
  • 162
  • 1
  • 10
0
votes
1 answer

Detect & prevent opening new tabs inside Chrome Custom Tabs

Background: Our webapp has a feature that sends links by email to users. When clicked inside the email, the link should open our webapp. Our webapp (window A) includes a few actions that create new tabs because the content cannot be rendered inside…
Shai Ben-Tovim
  • 892
  • 8
  • 20
0
votes
1 answer

Is there a way to stop saving any data or history in TWA?

I'm implementing Trusted Web Activities in my Android project, and as I understand it keeps data synchronised with Chrome. Is there a way to make data used inside the app private and not saved -like form fields and history- ?
0
votes
2 answers

URL still opened with webView even tho launched with android custom tabs

I'm pretty new to Android development and building a simple demo app to try out the Android custom tabs functionality. Yet somehow when I launched the app and tested it on the virtual device, I still see the URL is launched with webView instead of…
0
votes
1 answer

How can I capture a URL from Chrome Custom Tabs without clicks?

I am trying to switch to CustomTabs from WebViews as it has been disabled by Facebook for login. For this, I need to get the access token from the URL in the custom tab. How can I do this without requiring the user to click somewhere?
0
votes
1 answer

Beforeinstallprompt not getting called in in-app browser

I have a pwa1 which will open in in-app browser of pwa2. I have install button for pwa1. But in in-app browser beforeinstallpromt is not getting fired. Any workaround for this?