ios - how can I do manifest request with WKWebView -
i trying use new webview in app, seems wkwebview
can't work nsurlcache
, , manifest
request didn't work, no request loaded , nothing stored.
everything seems work better using wkwebview
instead of uiwebview
except using nsurlcache
, manifest
, wonder if there ways solve matter.
p.s. i've tried private api _setofflineapplicationcacheisenabled:
, work, app using non-public api rejected apple... i'm out of ideas.
right now, wkwebview instances ignore of default networking storages (nsurlcache, nshttpcookiestorage, nscredentialstorage) , standard networking classes can use customize network requests (nsurlprotocol, etc.).
so cookies of wkwebview instance not stored in standard cookie storage of app, , nsurlsession/nsurlconnection uses standard cookie storage has no access cookies of wkwebview (and problem have: „login status“ stored in cookie, nsurlsession/nsurlconnection won’t see cookie).
the same case cache, credentials etc. wkwebview has own private storages , therefore not play standard cocoa networking classes.
you can’t customize requests (add own custom http headers, modify existing headers, etc), use own custom url schemes etc, because nsurlprotocol not supported wkwebview.
so right wkwebview pretty useless many apps, because not participate standard networking apis of cocoa.
Comments
Post a Comment