Posts

Post not yet marked as solved
5 Replies
1.9k Views
Hi,We are using WKWebview to load mobile webpages in our app. While loading a particular mobile webpage, the response sets certain cookies.Later we need to call a rest api using the stored cookies. So, we call the below method to get all the cookies. But what we notice is some cookies that was suppose to be set after we got response goes missing. The behaviour is quite intermittent. Sometimes those cookies are seen. And sometimes not.[self.webView.configuration.websiteDataStore.httpCookieStore getAllCookies:^(NSArray<NSHTTPCookie *> * cookies) { NSLog(@"cookies before:%@", cookies); }];What could be the possible reason for this kind of behaviour.
Posted Last updated
.