Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable cookies and clear cache in Chrome Custom Tabs

I am using Chrome Custom Tabs to redirect users to a link of an 3rd party site. But, I want the cookies to be disabled and cache cleared in the resultant chrome custom tab (just like if the link would have opened in the incognito mode of google chrome). I have searched through the documentation , but could not find a way to achieve this. Kindly help

like image 700
Maverick7 Avatar asked Aug 23 '17 20:08

Maverick7


People also ask

How do I disable custom tabs in Chrome?

Open Google application or do a search, click the hamburger in the top left and go into Settings. Go into Accounts and privacy. Turn off 'open web pages in app'. This appears to turn off chrome custom tabs.

Can you delete cookies for a specific website Chrome?

Delete Site-Specific Cookies in Chrome Or, easier yet, copy and paste: chrome://settings/siteData into the address bar and hit Enter. While you can scroll through the multitude of stored cookies here, it has a simple search feature that allows you to find the specific offending site cookie and delete it.


1 Answers

Chrome Custom Tabs share cookies with regular Chrome by design. If you don't want cookies to be shared and/or want to have control over the cache, consider using a WebView, which runs in your own process and doesn't share any data with Chrome.

like image 98
Bernhard Bauer Avatar answered Sep 22 '22 08:09

Bernhard Bauer