Our app is using UIWebView and WKWebView side by side, and we are having an issue with keeping cookies in sync. I'm using NSHTTPCookieStorage and overriding the Cookie header on the requests before they leave for the wire on WKWebView, and then syncing anything set in the response via Set-Cookie. Occasionally, we are loosing a few cookies.
I'd like to view the cookies that WebKit has for debugging purposes. I can easily see what is in NSHTTPCookieStorage, but not the individual cookies used in WKWebView. From my searching, I've only seen ways to retrive the types of records that are stored, but not to inspect the actual contents.
In the simulator environment, I can see some cookies in /Library/Cookies/ but these seem to be from NSHTTPCookieStorage land. While, the contents of Library/WebKit/<my.app.name>/WebsiteData/* directories are all empty.
Any tips?
Thanks much!