Won't work in offline mode in WKWebview (iOS)
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?
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