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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -