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

Disable embedded media in android Chrome Custom Tabs

Is there a way to disable embedded media programatically, like youtube videos, in Chrome Custom Tabs? My app is being reject because when opening some urls that contain both ads on the web page and a Youtube video, it violates the device and network…
Emmanuel Guerra
  • 1,372
  • 1
  • 12
  • 20
0
votes
1 answer

Not able to return back to the app from ChromeCustomTabsBrowser

I have implemented login using ChromeCustomTabsBrowser. After successful login, if app's Open Supported links setting is set to "Ask evety time" instead of "Open in this app", response is not getting back to the app and showing 404 screen as…
0
votes
0 answers

Is it possible to retrieve the URL from Chrome Customs Tabs after the user has authenticated within a NativeScript-Vue Mobile App?

I have created an app that generates user api keys using a discourse site. They are returned as an encrypted payload as a parameter within the return url. Initially I was using WebView which worked fine but wouldn't allow users to login using Google…
0
votes
1 answer

Use an OkHttpClient with Chrome Custom Tab

I'm working on an Android application. I need to invoke a web page and I want to try Chrome Custom Tabs. In my experience on Android development, I used the WebView to accomplish this task, specifying the client to use OkHttpClient. This is useful…
xcesco
  • 4,690
  • 4
  • 34
  • 65
0
votes
0 answers

How to add non pending intent action to chrome custom tabs toolbar menu?

We know that we can add some action buttons to chrome custom tabs. For this we have to create pending intent and then it will be able to be added. Right now I have such action button at toolbar: val icon = BitmapFactory.decodeResource(resources,…
Andrew
  • 1,947
  • 2
  • 23
  • 61
0
votes
1 answer

how I record audio in custom chrome tab?

I'm trying to record audio on website of mine the website is like sarahaha you share your link on the social media ex: Facebook and messenger and get feedback by voice message…
0
votes
1 answer

How to create a custom tabs intent builder action button that saves the current URL

I'm trying to add a save feature, and I'd like to get get current URL of the customTabsIntent. CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder(); PendingIntent pendingIntent; Intent intent = new Intent(); //something CustomTabsIntent…
Alex Manbeck
  • 136
  • 1
  • 6
0
votes
1 answer

Scroll Callback or Listener for Chrome Custom Tab Android

I am looking for following 2 solutions related to Chrome Custom Tab in Android: Listener or Callback if the page url was completely loaded (i.e. 100%) Listener or Callback for page scroll or if the page scrolled to the end/bottom. Both are…
Ankit Kumar Singh
  • 240
  • 1
  • 6
  • 18
0
votes
0 answers

Difference between Chrome Custom Tabs and WebView

I'm using a webview to open a website. The problem I'm getting is after user clicks on a button, it always get stuck to the Loading dialog and doesn't show the expected results. But in Google Chrome or custom tabs, it works perfectly fine. I'm not…
Vishal Afre
  • 1,013
  • 3
  • 12
  • 39
0
votes
1 answer

Fallback for Chrome Custom Tab for OAuth 2.0 flow Android

We are creating a native Android SDK for OAuth 2.0 flow. For security reason, we don't want to use WebView as a fallback for Chrome Custom Tabs. I'm curious to know if it possible to have an Android device without Custom Tabs?
Pritam Karmakar
  • 2,773
  • 5
  • 30
  • 49
0
votes
1 answer

Chrome Custom Tabs customisations like setToolbarColor, start and exit animations are not working

I am new to Android and trying to open link in Chrome Custom Tabs. I have created a funtion to open any links on the app in Chrome Custom Tabs: public static void chromeCustomTab(Context context, String url) { CustomTabsIntent.Builder builder =…
0
votes
1 answer

Is using an invisible activity a bad practice?

I'm working with several applications. To log in we uses Oauth2 with customtabs using chrome. The "mother" application performs a login then send an intent to every application to say "perform login a preload your data in background" From there each…
0
votes
1 answer

MainActivity has leaked ServiceConnection CustomTabsServiceConnectionImpl that was originally bound here

xamarin android project unbindservice for custom tabs. I am not able to find out the method of unbinding services.
Query
  • 625
  • 1
  • 7
  • 22
0
votes
1 answer

chromecustomtab xamarin android MainActivity has leaked ServiceConnection CustomTabsServiceConnectionImpl@43a61ad that was originally bound here

I used chromecustomtab in my xamarin android project, i can bind service using CustomTabActivityManger class, but there is no option for unbind the service in that class. and as i am not unbinding, it always throws me error of memory leak. I am…
Query
  • 625
  • 1
  • 7
  • 22
0
votes
1 answer

chrome custom tabs not redirecting back to hybrid app

Am trying to use integrate oauth in my Hybrid app and am using angularjs 1 with cordova. I tried using this plugin https://github.com/EddyVerbruggen/cordova-plugin-safariviewcontroller along…