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
1
vote
0 answers

How to force Custom Tabs to launch as Desktop site everytime?

I'm trying to implement custom tabs into my app https://developer.chrome.com/docs/android/custom-tabs/integration-guide/ I've successfully launched the website using @OnClick(R.id.btn_launch) void onLaunchBtnClick(){ String url =…
1
vote
0 answers

CustomTabsClient.bindCustomTabsService always return false

I try to implement Custom Tab Intent with warmup capability. So it needs to create CustomTabsServiceConnection. However, when I bind the service it always return false. Please check my implementation below: // Custom chrome tabs private lateinit var…
fanjavaid
  • 1,676
  • 8
  • 34
  • 65
1
vote
1 answer

Trusted Web Activity & Bubblewrap forcing the render engine (Chromium/firefox/geko)

Is there a way with bubblewrap when building a TWA to force the #custom-tabs engine that is used? Ie at the moment if a user has their default browser set as Firefox the TWA installed will use the Firefox/gecko implementation... I'd rather force TWA…
1
vote
1 answer

Xamarin Forms: Android CustomTabs close when app is backgrounded

TL;DR: CustomTabs close when app is backgrounded, but we need it to stay active. How can we achieve this? We have an app which uses CustomTabs to login the user. We have added two-factor authentication, but this introduces a problem. When you tap…
1
vote
1 answer

Android - Params inside bundle using EXTRA_HEADERS through CustomTabs intent, are not received/readed by Google Chrome after app update in Play Store

Google Chrome was upgraded in Play Store to 83.0.4103.106 version (https://chromereleases.googleblog.com/2020/06/stable-channel-update-for-desktop_15.html). In there, Google team did some enforcements to avoid JS injection. My android app uses…
1
vote
0 answers

Firefox not working with Custom Tabs Android

My application opens specific url from app via CustomTabs. Url is of local server with self signed certificate, so when i open url with Firefox it shows 'Untrusted Connection' with options 'Visit site' and 'Add permanent exception', but neither of…
1
vote
0 answers

Custom Tabbed Page - custom tabs

I'm trying to make a custom tabbed page of which each tab has a certain shape. It's not too complex, I only need to change the cornerradius in fact of 1 side of a tab. Now, I have been able to make a custom tab and change some stuff like bckground…
1
vote
2 answers

How to set default Chrome custom tabs didn't have to show “open with”

I have built an Android app with Chrome Custom Tabs, but when I clicked the button to show the URL, a dialog appear say I need to choose "Open With" and list of all my browser apps that are available to be chosen. My problem is how to determine that…
1
vote
1 answer

Has customtabs mayLaunchUrl behaviour changed?

I used to use the chrome CustomTabs mayLaunchUrl in my app to request a URL in the background and as a result drop the desired cookie in the users chrome browser, but now that I'm testing this feature again, I noticed it doesn't work the same way…
1
vote
1 answer

How to check if chrome is not enabled on user's device

I am using Custom Tabs to launch web view. The issue is that, if i disable chrome it opens the URL in an activity, which does not have any button in it. I want to launch Web Browser, if chrome is not installed on your user device, and launch…
dev90
  • 7,187
  • 15
  • 80
  • 153
1
vote
1 answer

App Links inside Custom Tabs in the same app

I am facing a problem where I'm loading some web pages in Custom Tabs, and I want to use App Links when going to a certain page to open the native app. From my investigation, it looks like if the page is open with Custom Tabs in the same application…
Filip Marusca
  • 176
  • 1
  • 11
1
vote
1 answer

Android Google Drive OAuth with CustomTabsIntent

I have been trying to get google OAuth to work on android and I am continuously hitting roadblocks. Right now, in my manifest, I've added the custom url scheme and host for my redirect URL, like so: When I try to use that URL scheme in the Google…
1
vote
5 answers

How to show tabs one by one while swiping in a view pager in android

I need a TabLayout which shows only two tabs on it's initial stage. After swiping active tab will be in center, next tab will be in left side and previous tab will be on right side. How can I do that? Below are the exact scenario snapshots: pls…
1
vote
1 answer

How to disable Default Menu in CustomTabs in android?

I am using the 'com.android.support:customtabs:25.0.0' in android, I wanted to delete the default menu item "Open In Chrome" from the menu list, because i wanted to handle the onClick of "Open In Chrome", my understanding was, we can handle onclick…
Murali
  • 165
  • 1
  • 14
1
vote
2 answers

Exclude Activity from recents and history

Actually I have a direct issue with android custom tabs. But nevertheless I will generalize my question. Let's assume that I have ActivityA and ActivityB. ActivityA - is an external one, so that we launch it from an Intent : Intent intent =…