How can I execute a manifest request with WKWebView

I tried to use the new WebView in my application, but it seems that   WKWebViewit cannot work with NSURLCache, and the request Manifestdoes not work, the request was not loaded, and also nothing was saved.

Everything seems to work better, using WKWebViewinstead UIWebView, with the exception of use NSURLCacheand Manifest, so I wonder if there are any ways to solve this.

PS I tried Private API _setOfflineApplicationCacheIsEnabled:and it really works, but an application using a non-public API will be rejected by an apple ... I now have no ideas.

+4
source share
1 answer

WKWebView (NSURLCache, NSHTTPCookieStorage, NSCredentialStorage), , (NSURLProtocol ..).

, cookie WKWebView Cookie , NSURLSession/NSURLConnection, Cookie, cookie WKWebView ( , , : " ", , cookie, NSURLSession/NSURLConnection cookie).

, .. WKWebView , , Cocoa.

( HTTP-, ..), URL- .., NSURLProtocol WKWebView.

, WKWebView , API- Cocoa.

+4

All Articles