Questions tagged [android-customtabs]

Chrome custom tabs give apps more control over their web experience, and make transitions between native and web content more seamless without having to resort to a WebView. Chrome custom tabs allow an app to customize how Chrome looks and feels.

Chrome Developer Site: https://developer.chrome.com/multidevice/android/customtabs

GitHub Demo: https://github.com/GoogleChrome/-tabs-client

91 questions
5
votes
2 answers

Is it possible to make a Chrome CustomTabs intent not open an external application?

I want the Chrome CustomTab to always open the url in the Chrome CustomTab. Even if there is an external application that the intent can go to. Right now the user is prompted if they want to open in Chrome or the external application. Is it possible…
4
votes
2 answers

Callback when task goes into background or comes into foreground?

I have an activity A, it launches custom-tab. I need to know while the custom tab is open, if the task (of which the activity is part of) goes to background or comes to foreground. I am aware of this question How to detect when an Android app goes…
4
votes
1 answer

Android 12 Beta cannot view PDF link with CustomTabsIntent

On Android 10, I can open PDF http link with CustomTabsIntent (it redirect to Drive PDF Viewer) but on Android 12 Beta (on Android Virtual Device) it always show download dialog: val uri =…
o0omycomputero0o
  • 3,316
  • 4
  • 31
  • 45
4
votes
0 answers

Android browsers support custom tabs

Any body have an idea which browsers supports Custom Tabs and from which version ? I began the search today and i found that chrome, firefox, brave, edge all supports custom Tabs. any one did a search on this subject. Custom Tabs is a browser…
Anis MARZOUK
  • 266
  • 2
  • 9
4
votes
1 answer

How can I get my Android app to always open in Chrome or another browser that supports TWA?

I have a very basic Android app generated from https://appmaker.xyz/pwa-to-apk/. That app was actually modeled very closely off an example published by Google which I cannot find anymore. The problem is that if you set the default browser on the…
Bee
  • 41
  • 3
4
votes
2 answers

How to find androidx.browser:browser version?

I want to use CustomTabsIntent. But I don't find androidx's customTabs path and version. Finally I got this: androidx.browser:browser:1.0.0 I want to know the right steps. I saw this, but I don't find path and…
Matt - sanemat
  • 5,418
  • 8
  • 37
  • 41
4
votes
1 answer

Secure the Auth Code in Oauth2 with native apps (Android)

That question is hardly related to AppLinks assetlinks.json appears not to be used for validation I am implementing Oauth2 apps on Android. I would like to do SSO (single sign-on) and I have a concern about AppLink to secure the Autorization…
4
votes
1 answer

Chrome custom tabs cookies, storage APIs and service worker

I tried to lookup many answers from stackoverflow but couldnt find anything specific to this, I am implementing payment app and I want to display custom-tab in my app to record user visit by storing user-id, either by setting a cookie or using…
4
votes
1 answer

How to add EXTRA_REFERRER to CustomTabsIntent builder in Chrome custom tab for Android

I am using newly launched Chrome Custom tabs for android instead of using webviews. This is the link to their documentation Here is the code that shows how to use it. String url = ¨https://paul.kinlan.me/¨; CustomTabsIntent.Builder builder = new…
Palak Darji
  • 1,084
  • 18
  • 28
3
votes
0 answers

How to clear cookies from Custom Tabs Android

I've implemented SSO using the App Auth library. Part of the functionality of our app is when the user is logged in via App auth the cookies are shared to Custom Tabs in order for users to access logged in user content. However, when the user logs…
DJ-DOO
  • 4,545
  • 15
  • 58
  • 98
3
votes
0 answers

Opening Google Form Url in Chrome CustomTab is redirecting to Device installed Chrome Browser

I am opening links like "https://forms.gle/formId" in Android Chrome CustomTabs. But Opening these Urls is redirecting to a Chrome Browser. How can I restrict to Open the redirect Url also in CustomTab itself instead of browser. In WebView , this…
3
votes
0 answers

Chrome CustomTabs CustomTabsCallback onPostMessage not called

I'm trying to work with the Chrome CustomTabs on Android, but I have a problem about use of CustomTabsCallback. So, I searched on the web some examples or documentation to implement in my code, but I unfortunatelly I did not find anything... I need…
3
votes
0 answers

Customtabs javascript method

Is there is a way to run javascript method on custom tabs or external web browser, not a webview. CustomTabsIntent customTabsIntent = new CustomTabsIntent.Builder().build(); customTabsIntent.launchUrl(context,Uri.parse(url)); Thanks
3
votes
1 answer

How to hide the URL Of Custom Tab?

I am using a custom tab in android. I have gone through many of the google search to hide the URL of custom tab but everywhere is showing that it is not possible to hide the URL.I just want to know that is there any way from which i can hide the url…
Sushil
  • 51
  • 1
  • 7
3
votes
1 answer

Is there any way to load html content in chrome custom tab

Is it possible to load local html content using chrome custom tab in android? I searched the web, could not find the solution, can anyone help..
SaravInfern
  • 3,338
  • 1
  • 20
  • 44