-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
WKWebview cookie sometimes can't be get after upgrade to Cordova 6.1.0 #751
Comments
I just find the cause of this issue. |
Thanks for reporting. Good find! Sounds like an issue in inappbrowser. I am transfering this to the inappbrowser repo. |
Hey @NiklasMerz , any timeline for the 4.0.1 release? |
Sorry we don't give any release dates. This issue is not addressed yet. Pull requests welcome. |
I am now affected by this problem. I am working on a pull request right now. Seems like the new |
@NiklasMerz We also had a problem just recently with managing the session cookie between different instances of the InAppBrowser. What we did was changing up the import in the Maybe this will help |
I found a fix but this also requires a fix in cordova-ios. Let's see how the reviews go there. |
Bug Report
Problem
Try to get the cookie of inappbrowser. But sometimes can't get correct cookie.
This issue happen after upgrade cordova to Cordova ios 6.1.0. and inappbrowser upgrade to 4.0.0
What is expected to happen?
Use blow code to get cookies in decidePolicyForNavigationAction of CDVWKInAppBrowser
WKHTTPCookieStore wkWebViewCookieStore =[[[theWebView configuration] websiteDataStore] httpCookieStore];
[wkWebViewCookieStore getAllCookies:^(NSArray wkcookies) {
for (NSHTTPCookie* cookie in wkcookies)
{
NSLog(@"wk cookie name is %@",cookie.name);
}
}];
What does actually happen?
Some times the wkcookies can't get the correct cookie.
And this issue not always happen, but sometimes. in my test ,50% percentage happen.
Information
This issue not happen after downgrade the cordova ios to 5.1 and still use inappbrowser 4.0.0(after resolve some compile error).
Command or Code
Please see above
Environment, Platform, Device
Cordova 9.0.0, Cordova ios 6.1.0, xcode 11.5.
Iphone simulator(13.5) and Iphone X (13.5)
Version information
Checklist
The text was updated successfully, but these errors were encountered: