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

Chrome Custom Tabs - Intent not being triggered (Android)

I am working on implementing PayPal into my current Android app, and I have been advised to use Chrome Custom Tabs, but I cannot seem to get the Intent to be triggered. I believe I have set the Intent up correctly in the AndroidManifest.xml
RheeBee
  • 195
  • 2
  • 11
5
votes
2 answers

Chrome Custom Tabs Oauth2 Flow

I'm using chrome custom tabs to login with strava. I'm able to authorise the app, but the chrome custom tabs is not redirecting back to my app on reaching redirection.
Victor
  • 4,171
  • 1
  • 29
  • 37
5
votes
1 answer

Chrome custom tab and cordova

Does cordova support Google chrome custom tabs yet? https://developer.chrome.com/multidevice/android/customtabs is there a plugin for this?
Angad Dubey
  • 5,067
  • 7
  • 30
  • 51
5
votes
2 answers

How to use chrome custom tabs below api 16?

I want to use chrome custom tabs below api 16. My app suports Min SDK Version upto 10(GingerBread). When I declare the customtabs dependency in build.gradle it gives the following error : Error:Execution failed for task…
Anudeep Samaiya
  • 1,910
  • 2
  • 28
  • 33
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

Is there any equivalent of webViewClient in Chrome Custom Tab

I am working on an app which implements Google Login through Salesforce. I.e. Salesforce IDP takes care of authenticating user with Google and redirects the user to the home screen of the app through deeplink. Now as Google does not more allow apps…
Faysal
  • 101
  • 1
  • 8
4
votes
1 answer

Android 11, Custom Tabs, and FLAG_ACTIVITY_CLEAR_TOP

In an application I am working on a Chrome Tab is used for an external OAuth flow. At the end of the flow the Custom Tab stays open with an informational message, and an email is sent that has a custom scheme link. Until Android 10 clicking the…
4
votes
1 answer

Android API 30 getPackageManager.resolveActivity() returns null with ACTION_VIEW

I am trying some codes of codelabs in android studio 4.0 and used the following codes in a app: String uri = uritext.getText().toString();//uritext is an editText view Uri webpage = Uri.parse(uri); Intent intent = new Intent(Intent.ACTION_VIEW,…
4
votes
0 answers

Android Chrome Custom Tabs Deep Link Redirect in OAuth flow 'cancelled'

I am debugging why I am seeing a "(canceled)" status in chrome custom tabs when redirect to deep link is sent using a custom scheme. ie myapp://app/path?foo=bar The activity in my manifest is as follows: The reason I…
lostintranslation
  • 23,756
  • 50
  • 159
  • 262
4
votes
1 answer

Deep link not working from Chrome Custom Tabs with device having old version of Chrome

I launch ChromeCustomTabs from my app. The page in chorme custom tabs show a button. On click of that button a deep link is triggered, something like this myapp://show/screen?id=123. My corresponding intent-filter is like this: …
LoveForDroid
  • 1,072
  • 12
  • 25
4
votes
0 answers

Android onNewIntent is not being called

I am working on Android/Kotlin with Google Chrome Custom Tab, CCT for doing an oAuth for 3rd party server. When oAuth is completed, CCT is supposed to redirects to my redirect_url where, I am catching it in onNewIntent and onCreate. Unfortunately my…
Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
4
votes
1 answer

How do I return the user to my TWA when pressing on a media notification?

I'm building an Android app that wraps my Progressive Web App as a Trusted Web Activity. (I'm following guidelines from Google's sample project.) When the user plays audio in the app, a media notification appears on the device. I'm using the web…
4
votes
1 answer

How to auto close a Safari View Controller or Chrome Custom Tab and return to the mobile app?

My mobile app (React Native) uses a Web View (Chrome Custom Tabs on Android and Safari View Controller on iOS) for a small user flow within the app. At the end of the process the web view should close and return to the app. I've managed to make it…
4
votes
1 answer

Get Tab based history of urls in Chrome Extension APi

I want to get the history based on tabs not the global history. I have tried the chrome.history but it is a global history API and it is not giving the tab specific history Following the thread I checked chrome.webNavigation API but it was just…
4
votes
1 answer

Change Status Bar Colour in Chrome Custom Tabs

I am using Chrome Custom Tabs to display web content in my app. Obviously one of the main advantages of this is the ability to change UI colours in the tab. However, I need to change the status bar colour to something other than a darker version of…