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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -