aps-simple-viewer-nodejs icon indicating copy to clipboard operation
aps-simple-viewer-nodejs copied to clipboard

Won't work in offline mode in WKWebview (iOS)

Open iFieldSmart-Tech opened this issue 7 months ago • 1 comments

We tried using this in our in-app browser in our iOS application using WKWebview, but it only works in online mode there, not in offline. I understand it might be because apple does not allow service workers in WKWebview. Is there any solution for this? Any way we can make it work in the webview in our app in offline mode?

iFieldSmart-Tech avatar Jun 19 '25 05:06 iFieldSmart-Tech

Frankly speaking, I don't try it myself, but ...

According to https://developer.apple.com/documentation/xcode/preparing-your-app-to-be-the-default-browser#Use-default-browser-capabilities, apps that use the com.apple.developer.web-browser managed entitlement can use Service Workers in WKWebView instances.

Ref: https://github.com/react-native-webview/react-native-webview/issues/1086

yiskang avatar Jun 19 '25 07:06 yiskang