-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetched cookies doe not have expires
field on Android
#70
Comments
Hey @achen0115, curious if you ever solved this issue? |
After looking at the Android cookie manager docs (https://developer.android.com/reference/android/webkit/CookieManager), this is actually expected behavior. Internally the cookie manager keeps track of the state (expiration, etc.), but the return value of However, internally, it seems that CookieManager manages expiration, etc and those values are passed into WebView appropriately. |
I dug into this on a newer version(13.2.2), as @shorsher mentions, But I did have to set the expiry value with this format explicitly |
@peterlazar1993 @shorsher hey there! :) I observed that react-native-webview sets the cookie expiration to 'Session' and does not regard the |
RN: 0.63.2
Library version: 3.0.0 (also upgraded to 4.0.1, but it does not work either)
I could fetch cookies successfully on Android, but they do not contain
expires
field, even I set the expiration when saving the cookie.e.g.
I got the following when I called
CookieManager.get(theUrl)
PS: Path and domain are not returned correctly either on Android as reported in #67.
The text was updated successfully, but these errors were encountered: