Enable Application cache in WKWebView

Update 2022 According to one of the comments below, this hack doesn’t work anymore. Yes, we can enable App cache by accessing private API Create a category for WKPreferences and add to following method signature. @interface WKPreferences (MyPreferences) – (void)_setOfflineApplicationCacheIsEnabled:(BOOL)offlineApplicationCacheIsEnabled; @end (I tried performSelector:withObject: but it didn’t work. No idea why) After initializing the WKWebView, … Read more