简体   繁体   中英

Keep user logged in when using a Android WebViewClient

I have a question about the android WebViewClient, is it possible to make for instance a page where users can login and then save the credentials into a cookie like we could do on regular website that is not running inside an Android App?

If we can't do this, what can we use to achieve this, it should be a really basic easy thing to create we don't need tight security or anything. We basically only want to use an email address to let the user login to the application and let them stayed logged in.

Any suggestion or help would be greatly appreciated, sins Android Studio is completely new to me.

Thanks in advance.

so basically, WebView is just used to display, and doesn't actually have the ability to save data. However, you can use CookieManager & CookieSyncManager to store the data you need

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM