As a result of executing the code below
In iOS13 and above version, we could set Cookie and check cookies in HTML loaded on webView.
However, cookies were not set in iOS11, iOS12.
Can I check if Apple API Guide function is defective?
It's my code.
In iOS13 and above version, we could set Cookie and check cookies in HTML loaded on webView.
However, cookies were not set in iOS11, iOS12.
Can I check if Apple API Guide function is defective?
It's my code.
Code Block if (@available(iOS 11.0, *)) { dispatch_async(dispatch_get_main_queue(), ^{ for (NSArray *cookie in [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]) { [webview.configuration.websiteDataStore.httpCookieStore setCookie:cookie completionHandler:^{ [webview loadRequest:request]; }]; } }); }