iOS WKWebView Service Worker

2.2k Views Asked by At

As of iOS 15 appCache is disabled. So I am looking for alternative.

Is there an official way to enable WKWebView Service Workers?

I know that you can add info.plist key for WKAppBoundDomains and then enable them by instantiating the WKWebViews with limitsNavigationsToAppBoundDomains = YES enabled in the config. This will allow you to use service workers for the domains you have specified in the WKAppBoundDomains. Can I rely on this? I haven't found any Apple articles mentioning it.

0

There are 0 best solutions below