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.
392
questions
0
votes
0
answers
8
views
Chrome Custom tabs not working on emulator but are working on real Android device
I have an app that uses Chrome custom tabs for third party auth sign in. The problems is is that when the custom tab is asked to open the url, the tab closes as soon as it's opened on an emulator, and ...
0
votes
0
answers
39
views
Chrome mobile annoying popup to open Android app intent
Let's assume we have installed Android app in the mobile phone with intent filter scheme android-app-scheme and some registered host with path pattern in data of intent filter.
If we use this code in ...
1
vote
0
answers
70
views
TWA not working, still showing Custom tab URL bar
Trying to hide the URL bar in debug mode but no hope:-
Followed:
Old Stackoverflow Guide (Answer didn't work for the OP also):
Is it possible to hide URL bar on Chrome Custom Tabs
Followed (Not ...
2
votes
0
answers
73
views
How can a native Android App support multiple SSO providers and allow users to login with different accounts without requiring manual logout in Chrome
I am trying to implement an SSO login in a native Android app and want to follow the best practices outlined in RFC 8252 (OAuth 2.0 for Native Apps). This requires using Custom Tabs rather than ...
0
votes
0
answers
61
views
Why my chrome custom tab pops out every time I press back button
guys I want to ask why every time i pressed back button will pop out chrome customtab since I set for a few url only can be pop out chrome customtab but seem not working is there any problem?
Chrome ...
0
votes
0
answers
48
views
App Link not opening my app when link is activated from within custom tabs
I have this in my AndroidManifest.xml:
<activity
android:name=".activities.MitIdLinkActivity"
android:exported="true">
<intent-filter android:autoVerify="true">
<...
0
votes
0
answers
54
views
send http url in EXTRA_REFERRER in adnroid customtab
in my webview there is a page that need Referer parameter
in webview i send Referer with this code and works fine
Map<String, String> extraHeaders = new HashMap<String, String>();
...
0
votes
1
answer
73
views
Get CustomTabsSession from Bubblewrap generated TWA
I create a TWA using Bubblewrap and the app works fine. Now I need to send a WebMessage and this can be done with CustomTabs, according to the documentation, but I don't know how to get the active ...
0
votes
0
answers
37
views
Inject/Pass FCM token to user database on Chrom Custom Tab based application
This might seem duplicate of other questions but after digging deep into google I couldn't find an approach on how to pass or inject (into html form) FCM token to a certain user after he logs in or ...
0
votes
0
answers
20
views
how to force dark theme in custom chrome tab?
I'm working on an Android App which supports dark theme. I use Custom Chrome Tab to display web page. Just wondering if there is any way to force dark theme in custom chrome tab.
0
votes
0
answers
196
views
Get Loaded Url in Custom Chrome tabs when page changes
I am using chrome custom tabs in my application to do authorization but I am not able to get the loaded link of chrome tab with-out using action button embedded on chrome tabs. If anyone worked on it ...
0
votes
0
answers
60
views
How to capture URL opened in custom chrome tab
is there any function or callback available in android custom chrome tabs which capture all URL change with URL data.
0
votes
0
answers
45
views
Webview when reach the url I want then open custom tabs
How to do that when in google.com and click a link to other website open as custom tabs
String url = "https://www.google.com/";
@Override
protected void onCreate(Bundle ...
0
votes
0
answers
52
views
How to get cookies from custom tab in Android
I want to fetch cookie from custom tab when button is clicked in browser. Is there any way to get this in Android.
1
vote
1
answer
63
views
How can I change navigationbar color when using TWA or custom tabs?
I am using TWA . It is all Ok .But how can I change navigation bar color? I tried to change the app theme but no effect.
0
votes
0
answers
157
views
How to share localStorage data between Chrome Browser (or Chrome Custom Tabs - CCT) and WebViews?
I have an Android app with a WebView which loads multiple URLs with links. Some of these URLs are opened in a Chrome Browser (or Chrome Custom Tabs) and these loaded pages write to localStorage using ...
0
votes
1
answer
160
views
Adding cookies to Custom Tabs in Android
I'm trying to pass a cookie to custom tabs like in webview so that the user doesn't have to login, I've seen other questions but all of them were 6+ years old so I'm wondering if it's possible to do ...
0
votes
1
answer
101
views
How to get "open with" prompt for Custom tabs instead of always opens up in the default browser
Custom Tabs always opens links in the default browser and beats the purpose of using it for SSO providers. My enterprise has a browser application that can provide sso functionality but when the other ...
0
votes
0
answers
64
views
navigation from onclick blocked if async navigation was blocked
We have this code in our script
const openDeeplink = () => {
const defaultUrl = "test://main";
location.replace(defaultUrl);
};
setTimeout(() => {
var buttonElem = document....
0
votes
0
answers
160
views
Android Chrome Custom Tabs and PostMessaage
Has anyone got PostMessage to work with ChromeCustom tabs to communicate between the native android aoo and the web?
The initial step of getting a postMessage channel is failing. It is also not very ...
0
votes
2
answers
224
views
Can we restrict screen capture using secure flag for chrome custom tab in android?
I am using chrome custom tab to display data in one screen. But data is sensitive and need to protect it by disabling screen capture functionality of devices.
It would be great help if any one could ...
0
votes
0
answers
68
views
How do I focus on my Custom Tab screen running in the background?
I'm creating an application in Flutter that will have web flows that we decided to use Trusted Web Activity for performance reasons.
We have a Home screen (Flutter), which starts the web flow in a ...
5
votes
1
answer
520
views
Any browser doesn't support custom tabs feature?
I tried opera browser ,opera mini, UC mini, duckduckgo all support custom tabs,
just wanna know in 2022 is there any browser still doesn't support custom tabs?
0
votes
1
answer
303
views
Hide the location bar in Chrome Custom Tabs in MAUI
So that I don't ask the wrong question, my end goal is to build a PWA that is accessible from Android 5.x and up now and iOS later in the year. The main problem with this is Classic Bluetooth is not ...
0
votes
1
answer
555
views
Android Custom Tabs - prevent launchUrl() from opening default apps, force in-app custom tab browser
.launchUrl(this@MainActivity, Uri.parse(url))
When url is https://www.amazon.com, the Amazon app is opening instead of the custom tab browser. Is there any way to prevent this from happening and ...
0
votes
0
answers
164
views
is there any to load PWA inside react-native for IOS .....?
like for android there is trusted web activity to achieve the functionality of Pwa...
but i want to integrate in the IOS also..
so any way to load react Pwa inside react-native wrapper
I've use this ...
0
votes
0
answers
82
views
What are the android capabilities I should use if my app use chrome custom tabs?
I am new to mobile automation and facing some challenges while automating my application. My application uses chrome custom tabs. The transition happens when I click on login button on android native ...
0
votes
0
answers
404
views
Issue with the Appium Inspector
My mobile app uses Chrome custom tabs, so when I click on login button on native screen of Android emulator, it opens google link. I want to access that google page elements to automate my testCase ...
0
votes
0
answers
61
views
Enable desktop site by default in custom tab
I'm developing one application. I'm using custom tab for Login via Facebook for oculus quest. if I use WebView with desktop user agent Facebook login will not work. if I use custom tab with desktop ...
0
votes
1
answer
316
views
Programmatically hide and show keyboard using Chrome Custom Tabs
I am using this package to use the Chrome Custom Tabs view in a Flutter application.
Essentially we have a website we've built an APK around using a web view but due to customers and their old devices,...
0
votes
1
answer
128
views
Callback on successful login for sso on chromeCustom tab
I am using CCT for sso Login.now once the login is successful, the cct is not coming back to app.
Suppose the success url contains "com.example.success://hello/success"
m adding data as
<...
0
votes
1
answer
564
views
Chrome Custom Tab support in capacitor
Is there any way to make Browser Tab work with a capacitor react project.
I found that it's supported in ionic. I'm relatively new to ionic and capacitor.
I'm trying to use this ionic plugin in my ...
1
vote
0
answers
1k
views
Using Chrome Custom Tabs for a login window, can I disable the "Open in Browser" menu option?
In our Android app, we're using a Chrome Custom tab to implement an OAuth-based login flow, as outlined in this video: https://www.youtube.com/watch?v=DdQTXrk6YTk
One issue I'm having is the Custom ...
0
votes
1
answer
1k
views
Error on load Chrome Custom Tab in Android 11
Chrome custom tab work in every other device. Only error in Android 11.
Here is my code how I put I code in my app.
ImageView adCustomBannerImage= findViewById(R.id.adCustomBannerImage);
...
1
vote
0
answers
232
views
Resume browsing on Chrome Custom Tab
I am working on an special oauth flow on Android. I have an activity A which can delegate the authentication to a webpage using a CustomTabIntent launched by UI-less Activity B. Once the ...
0
votes
0
answers
603
views
Open certain links from Chrome custom tabs in Android app?
I am working on a flow which opens a URL in custom tabs, and after some action navigates to a URL which should deeplink back to the app. When using system browser instead of custom tabs, we are ...
0
votes
1
answer
392
views
Detect & prevent opening new tabs inside Chrome Custom Tabs
Background:
Our webapp has a feature that sends links by email to users.
When clicked inside the email, the link should open our webapp.
Our webapp (window A) includes a few actions that create new ...
1
vote
1
answer
2k
views
Chrome custom tabs activity result
I'm launching Chrome Custom Tabs using a similar function as below 👇 but I'm always getting the activity result as canceled which makes sense when clicking the close icon. but isn't really helping ...
0
votes
1
answer
83
views
Is there a way to stop saving any data or history in TWA?
I'm implementing Trusted Web Activities in my Android project,
and as I understand it keeps data synchronised with Chrome.
Is there a way to make data used inside the app private and not saved -like ...
0
votes
2
answers
296
views
URL still opened with webView even tho launched with android custom tabs
I'm pretty new to Android development and building a simple demo app to try out the Android custom tabs functionality. Yet somehow when I launched the app and tested it on the virtual device, I still ...
2
votes
0
answers
120
views
Desktop site in Chrome Custom Tabs by default
How can I make the site I open in custom tabs open as a desktop site by default?See screenshot for example:
4
votes
2
answers
920
views
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 ...
7
votes
1
answer
3k
views
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 = "https://demo....
0
votes
1
answer
692
views
How can I capture a URL from Chrome Custom Tabs without clicks?
I am trying to switch to CustomTabs from WebViews as it has been disabled by Facebook for login. For this, I need to get the access token from the URL in the custom tab. How can I do this without ...
1
vote
1
answer
233
views
Android app Crashing on password field for AppAuth Custom tab intent on Chrome browser(94.0.4606.80) only
After Opening Custom tab intent clicking on password field crashing application.
And it is only crash if chrome browser version is (94.0.4606.80)
I am using latest appauth lib
implementation 'net....
1
vote
1
answer
341
views
How to open Chrome Custom Tab in a Dialog in Android Application
In my current Android application I have a requirement to open a DialogFragment to display a list of results.
Each Result has an associated url that explains the item in more detail.
I can open a ...
0
votes
1
answer
120
views
Beforeinstallprompt not getting called in in-app browser
I have a pwa1 which will open in in-app browser of pwa2. I have install button for pwa1. But in in-app browser beforeinstallpromt is not getting fired. Any workaround for this?
<a href="...
0
votes
1
answer
191
views
How to pre warm / pre cache a Trusted Web Activity
I'm currently using the TwaLauncher class to launch a Trusted Web Activity from my app using code like the following:
val launcher = TwaLauncher(context)
launcher.launch(Uri.parse(URL))...
1
vote
0
answers
286
views
Loading a request header secured HTML file in Chrome Custom Tab
Requirement
Our customer requires the following
They host an HTML file that should be loaded in a Custom Chrome Tab on click of some element in our Android application.
To access the HTML file on the ...
0
votes
1
answer
197
views
Web Application on Android with Javascript Google API
I am trying to make small android application that controls google sheets. I want the whole thing in html,css,js where I use api for google sheets. My problem is I cant find solution to login to ...