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
11
votes
1 answer

how to use an intent-filter on customtabs using https scheme?

My app opens up a customtabs browser, and when the browser encounters a certain url I want to pop back open my app. I found this posting that works - Android - create a schema for my app that will open from a webpage link using a protocol called…
Joelio
  • 4,621
  • 6
  • 44
  • 80
11
votes
2 answers

How to implement URL change listener in chrome custom tabs?

Is there any listener in which we can know that URL has been changed in chrome custom tabs. String url = ¨https://paul.kinlan.me/¨; CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder(); CustomTabsIntent customTabsIntent =…
John
  • 8,846
  • 8
  • 50
  • 85
11
votes
1 answer

CustomTabs shows ERR_UNKNOWN_URL_SCHEME after 302 Redirect

I'm trying to implement OAuth2 login flow using Custom Tabs, but after login has been successful a 302 Redirect is retrieved with url as the following: "my.app:/oauth2/code?xxx". Now I have declared redirect URI in AndroidManifest to listen to this,…
Henric
  • 782
  • 1
  • 9
  • 23
11
votes
3 answers

Is there a way to test Chrome Custom Tabs with Espresso?

Here is the stub of the code. Click data item on ListView . Works as designed and opens Chrome Custom Tab : onData(anything()).inAdapterView(withId(R.id.listView)) …
11
votes
1 answer

Firebase Dynamic Links not deep linking with short URL on Custom tabs

I've created some Firebase Dynamic Links in my application programmatically that are working fine when they are long ULRs, I mean, the default Dynamic Link that Firebase creates. If the user does not have the app installed, it opens the Play store…
11
votes
1 answer

Lock orientation for custom tabs

I would like to lock the orientation using Chrome Custom Tabs. Is this something I can do with the Low Level API or do I need to get a new method added for this functionality? My use case is that I have an app that has custom tabs and I want it to…
Kirk Elliott
  • 133
  • 8
11
votes
2 answers

How to OAuth 2.0 login using Chrome custom tabs (Fitbit API)

Fitbit API doesn't support webview anymore. So, I studied chrome custom tabs and applied in my app. But after login, when I pressed this pink button(allow button), nothing happened.(Image below) How can I receive access token and store it in…
10
votes
1 answer

Redirect in Chrome Custom tab is not captured for deep link

I'd like to capture a redirect that occurs in a Chrome Custom tab to ensure the user stays in a native mobile application. Here's how the Chrome Custom Tab is launched: val url =…
10
votes
2 answers

How to get Callbacks from Chrome Tabs in android like web View provides shouldOverrideUrlLoading, onLoadResource, onPageFinished

I am trying to replace the web view with Chrome Custom tabs in my project. For replacing webview, I need a callback in the Chrome tab like the android web view provides. So are there any callbacks available or not and if available, then what are…
Faisal Khan
  • 2,574
  • 3
  • 20
  • 36
10
votes
2 answers

Auto close chrome custom tab

I had an app that used to open the phone browser, where the user would be redirected to my webapp, where after a certain user action, the webapp redirects back to the app using intent filters
Vardaan Sharma
  • 1,125
  • 1
  • 10
  • 21
10
votes
3 answers

Opening Tag URI with Chrome Custom Tabs "ActivityNotFoundException: No Activity found to handle Intent"

I am currently developing a simple RSS app for Android and one of the app's features is opening url with chrome custom tabs; I have implemented Chrome Custom Tabs based on the samples available on the docs. While most of the urls were successfully…
shoheikawano
  • 1,092
  • 3
  • 14
  • 31
10
votes
1 answer

Post data with Chrome Custom Tabs

Is there a way to send post data with url with Custom Chrome Tabs? Like it was with WebView: webView.postUrl(String url, byte[] postData) Cannot find any about it in documentation or in examples
eugeneek
  • 812
  • 9
  • 24
10
votes
2 answers

Is it possible to add custom request headers when using chrome custom tabs?

Planning to use chrome custom tabs, however before I start I wanted to know if its possible to intercept the request and set any headers in the request similar to WebViews ? Read through the documentation and could not find any examples or…
ksarmalkar
  • 1,884
  • 1
  • 16
  • 21
10
votes
3 answers

Chrome custom tabs and intent-filter

The application has Activity to show the content of the specific website e.g. "example.com". So to show the content of "example.com/product/123" inside the app I have intent filter:
Viktor Yakunin
  • 2,927
  • 3
  • 24
  • 39
9
votes
2 answers

Disable chrome custom tabs?

I recently got an update from chrome beta and it came with chrome custom tabs. I do not like this feature and would like to just open the links directly without pressing the open in chrome button. Thanks
TheKayneGame
  • 101
  • 1
  • 3
1 2
3
26 27