android - How to persist webview cookies between app executions? -


it possible achieve in android? can find deprecated questions old methods (cookiesynchmanager) not seems work actually.

it possible achieve it? can't find on android developers guide.

thank you

since cookiesynchmanager deprecated, cookiemanager.getinstance() cookiemanager instance entire application. hence, enable

cookiemanager.getinstance().setacceptcookie(true) 

setacceptcookie(boolean accept);

sets whether application's webview instances should send , accept cookies.

https://developer.android.com/reference/android/webkit/cookiemanager.html


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

php - Cannot override Laravel Spark authentication with own implementation -

What is happening when Matlab is starting a "parallel pool"? -