Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

share cookies between webview and chrome

Tags:

android

Is this possible in android to share cookies between webview (WebChromeClient) and Chrome app

(analogue of how it is done in ios with SFSafariViewController, where cookies shared between in-app SFSafariViewController and Safari app)

Edit 0: it looks like google chrome custom tabs share cookies with chrome app, but it's separete chrome app activity, not view widget like webview

like image 553
orium Avatar asked Feb 02 '16 10:02

orium


1 Answers

As far as I am aware sadly no. There are multiple reasons why browsers (and actually your app) would want and need this information private and protected (mostly security). I imagine if any cookies or private browser data were openly visible by any other app it would open the world of possibilities for abuse.

I may be wrong though, so anyone feel free to correct me.

Cheers

like image 90
Slobodan Antonijević Avatar answered Sep 24 '22 14:09

Slobodan Antonijević