Android-SmartWebView icon indicating copy to clipboard operation
Android-SmartWebView copied to clipboard

Cache issue

Open convert2xhtml opened this issue 5 years ago • 3 comments

Is your feature request related to a problem? Please describe. When users are logged in web browser they keep login even after few days where as on webview users have to login again and again for same website

Describe the solution you'd like Any idea what settings like Service Workers or something like myWebView.getSettings().setAppCacheEnabled(true); which i guess is deprecated now

Describe alternatives you've considered or some other way we can enable caching for user login details

Additional context Add any other context or screenshots about the feature request here.

convert2xhtml avatar Jun 28 '20 08:06 convert2xhtml

I'm sorry, are you using Smart WebView? or asking for a normal webview? You should use cookies better to get a hold of login sessions.

mgks avatar Jul 17 '20 05:07 mgks

HI i am using Smart WebView. On website we have used cookies only and thats why users are logged in when they return after days

convert2xhtml avatar Jul 17 '20 06:07 convert2xhtml

I use cookies for logins with smartwebview and they work flawlessly. I just have an expiration on each cookie. Also you control the cache on a server level. Have the server check the cache of the device and refresh the devices content after so many days. On the device that smartwebview is running clear the cache under whatever your app name is. It will be under Settings/Apps. This also has cleared up issues I have had in the past.

djmike3404 avatar Oct 13 '20 05:10 djmike3404