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

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -