android-customtabs

How to add EXTRA_REFERRER to CustomTabsIntent builder in Chrome custom tab for Android

谁都会走 提交于 2020-08-05 05:34:18
问题 I am using newly launched Chrome Custom tabs for android instead of using webviews. This is the link to their documentation Here is the code that shows how to use it. String url = ¨https://paul.kinlan.me/¨; CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder(); CustomTabsIntent customTabsIntent = builder.build(); customTabsIntent.launchUrl(this, Uri.parse(url)); Question is that I want to add Intent.EXTRA_REFERRER to this. below is the para copied from their blog in their own

POST data via CustomTab or Chrome

坚强是说给别人听的谎言 提交于 2020-05-15 05:32:06
问题 I want send POST HTTP request via CustomTab or Chrome then show page finally. I many research but no way for it. is there a way? can send POST request via Volley then show response in browser finally? 回答1: I wrote a workaround for that. Careful, is a dirty one ;) Steps: you need to create an html file with a form inside it add input fields to it corresponding to the values you need to pass to your url add this file to your asset folder on android code: read the content of the file save the

How to hide the URL Of Custom Tab?

一笑奈何 提交于 2020-01-15 03:13:13
问题 I am using a custom tab in android. I have gone through many of the google search to hide the URL of custom tab but everywhere is showing that it is not possible to hide the URL.I just want to know that is there any way from which i can hide the url in custom tab. 回答1: You could try this ugly solution which can do the trick while you don't get a better solution: 1) create an html document with this contents: <frameset rows="100%"> <frameset cols="100%"> <frame src="http://192.169.218.96:7777"

Secure the Auth Code in Oauth2 with native apps (Android)

拟墨画扇 提交于 2019-12-12 09:05:20
问题 That question is hardly related to AppLinks assetlinks.json appears not to be used for validation I am implementing Oauth2 apps on Android. I would like to do SSO (single sign-on) and I have a concern about AppLink to secure the Autorization Code. The native app, through the browser, initiate an Authorization Request and then receive an Authorization Response containing the Authorization Code. According to RFC6749#section-4.1.2, the code is passed inside the URL: HTTP/1.1 302 Found Location:

Chrome CustomTabs CustomTabsCallback onPostMessage not called

拥有回忆 提交于 2019-12-11 06:29:16
问题 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 to receive a postMessage sent by the hosted web page and read the content inside it. The postMessage was sent using "*" as origin, but I don't think that's the real problem. Here my code: CustomTabsClient.bindCustomTabsService(context, CUSTOM_TAB

Chrome custom tabs cookies, storage APIs and service worker

人走茶凉 提交于 2019-12-11 03:06:25
问题 I tried to lookup many answers from stackoverflow but couldnt find anything specific to this, I am implementing payment app and I want to display custom-tab in my app to record user visit by storing user-id, either by setting a cookie or using localstorage or by installing a service worker for the domain that custom tabs opens. Can a https page loaded in custom-tab write cookies that are also available when visiting the same page from Chrome? Is localstorage API available for my domain in

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

不问归期 提交于 2019-12-04 08:31:14
问题 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 app? Please help me. Thanks. 回答1: When authorizing agains the Fitbit API, you need to provide a redirect_uri , which is where the user will be taken after logging in. You need to provide a uri that will take the user back to your application. To achieve

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

こ雲淡風輕ζ 提交于 2019-12-02 23:42:25
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 app? Please help me. Thanks. When authorizing agains the Fitbit API, you need to provide a redirect_uri , which is where the user will be taken after logging in. You need to provide a uri that will take the user back to your application. To achieve that, create an intent filter and add a data tag with a custom scheme, such as myapplication://logincallback

Is there any way to load html content in chrome custom tab

你说的曾经没有我的故事 提交于 2019-12-01 07:55:13
Is it possible to load local html content using chrome custom tab in android? I searched the web, could not find the solution, can anyone help.. It's not possible to directly load HTML content using Chrome Custom Tabs but you could try saving the content to a local file and providing a file:// URL to see if that works. 来源: https://stackoverflow.com/questions/38179084/is-there-any-way-to-load-html-content-in-chrome-custom-tab

Is there any way to load html content in chrome custom tab

╄→尐↘猪︶ㄣ 提交于 2019-12-01 06:53:35
问题 Is it possible to load local html content using chrome custom tab in android? I searched the web, could not find the solution, can anyone help.. 回答1: It's not possible to directly load HTML content using Chrome Custom Tabs but you could try saving the content to a local file and providing a file:// URL to see if that works. 来源: https://stackoverflow.com/questions/38179084/is-there-any-way-to-load-html-content-in-chrome-custom-tab