Service Workers unavailable in WKWebView in iOS 11.3

后端 未结 2 1491
离开以前
离开以前 2020-12-28 19:09

Service Workers were available in WKWebView in iOS 11.3 betas, but do not appear to be available in the final GM version of iOS 11.3.

Does anyone know h

2条回答
  •  [愿得一人]
    2020-12-28 19:28

    Service Workers in WKWebView now require an entitlement:

    com.apple.developer.WebKit.ServiceWorkers, which should be added to the .entitlements plist as a Boolean with a value of YES.

    Currently this will only work in the iOS Simulator, until such time as Apple update the Apple Developer Portal to make it possible to create App IDs and Provisioning Profiles containing this entitlement.

    For more information see this bug: https://bugs.webkit.org/show_bug.cgi?id=182865 and associated change set: https://trac.webkit.org/changeset/228933/webkit

    EDIT: Unfortunately still seems to be the case in iOS 14.

提交回复
热议问题