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
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
2 answers

Why won't CustomTabsClient.bindCustomTabsService work?

I've recently been working on adding some Chrome Custom Tabs to my Android app and for some reason, I can't bind to the CustomTabsService. I have an updated version of Chrome Android Gradle Plugin Version 4.0.0 Gradle Version 6.1.1 I've added Log…
Code on the Rocks
  • 11,488
  • 3
  • 53
  • 61
3
votes
0 answers

Run Chrome Custom Tabs on Android Lollipop - Static interface methods are only supported starting with Android N

I'm making app with the chrome custom tabs. When I try run app on Lollipop, I get error: Error: Static interface methods are only supported starting with Android N (--min-api 24): androidx.browser.trusted.TrustedWebActivityDisplayMode…
mmaciejow
  • 57
  • 7
3
votes
1 answer

SSO Login with Chrome Custom tabs

In my app, I need to do login through a web page. On successful log-in it is returning in the header of the response as "my-app:/auth?code=xxxxxx&status=xxxxx". I configured a custom schema in my APP. Code to open Chrome custom tab: StringBuilder…
3
votes
0 answers

Get data from Chrome Custom Tab request URL in Android

I am trying to implement a PayPal Vault Braintree payment solution. But since it is a "redirect" process via Chrome Custom Tab, I am having trouble finishing the process. This because in Paypal Web version, the "data response" returns in URL to be…
Jeú Casulo
  • 139
  • 2
  • 11
3
votes
1 answer

Using postMessage in a Chrome Custom Tabs CustomTabsSession

I'm getting to grips with the functionality available in Chrome Custom Tabs and I'm curious to know how I might go about communicating between the Custom Tab and the app itself. I can see in CustomTabsSession that there are methods like…
Alastair
  • 5,894
  • 7
  • 34
  • 61
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
3 answers

how to remove toolbar in custom tabs(plugin of android

see custom tab here i want to remove the complete this blue section ,actually i don't want those option and link to displayed in my custom tab. i don't want to show these option in my custom tab. any help ?? . i try to set them to invisible in its…
anshul raj
  • 173
  • 2
  • 17
3
votes
0 answers

How do I use PostMessageServiceConnection in Android Chrome Custom Tabs?

There are no tutorials on how to achieve this, and the documentation at https://developer.android.com/reference/android/support/customtabs/PostMessageServiceConnection is not helpful. There are very few posts on SO on this topic and most of them…
3
votes
0 answers

Set Chrome Custom tab to invisible to user / resize it to very small

I want to set the Chrome Custom Tab to be invisible to user, or at least resize to very small size. (Solution that only works for Chrome is OK). The use case is as follows: We have an idp own by us, which can login to multiple websites and (in the…
Ng Sek Long
  • 4,233
  • 2
  • 31
  • 38
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
0 answers

Http headers in subsequent calls / navigations in chrome custom tabs

I am launching a chrome custom tab and setting customTabsIntent.intent.putExtra(Browser.EXTRA_HEADERS, headers) its working as expected. However, I am in a situation. When i launch the chrome custom tab with headers, and when redirection happens…
Aayansh
  • 31
  • 2
3
votes
1 answer

Instruct Custom Tabs to not suggest authentication storage

I have an Android application that opens up a OAUth webpage using AppAuth for authentication of the user. When the user has authenticated, the chrome browser is suggesting to the user to store the credentials (user/pass) in the browser. If possible,…
Hrafn
  • 2,867
  • 3
  • 25
  • 44
3
votes
0 answers

How to get response back from Chrome Custom Tabs in react-native

I want to get response from URL that is opened into chrome custom tab. actually i have some forms in external url that is submitted and return data array on success page. I want to get array into my app. when user click on button custom tab will…
Ranjeet singh
  • 794
  • 1
  • 16
  • 38