When I started the Android app, if there are any cookies left, I would directly display WebView and
If there is no left, I am trying to display the login screen.
Is the duration of the cookie set in CookieManager the same as when I saved the same cookie in my browser?
Also, in this case, would it be more effective to save it in Shared Preferences or something?
If you want to restart as soon as you log in,
CookieManager
found that the cookie was not saved properly (with null returned).
So you might want to save it to SharedPreferences
or something.
© 2024 OneMinuteCode. All rights reserved.