xinhuadian opened a new issue #934: URL: https://github.com/apache/cordova-ios/issues/934
# 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 <!-- Include all relevant information that might help understand and reproduce the problem --> 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 <!-- What command or code is needed to reproduce the problem? --> Please see above ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> Cordova 9.0.0, Cordova ios 6.1.0, xcode 11.5. Iphone simulator(13.5) and Iphone X (13.5) ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [ ] I searched for existing GitHub issues - [ ] I updated all Cordova tooling to most recent version - [ ] I included all the necessary information above ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org