I am building an iOS App that uses a WKWebView to provide a Browser.
When the a web page uses the
navigator.share()
method of the Web Share API, the browser will trigger the iOS Sharing Screen (ShareSheet), where the user can decide how to share the resource.This App is for kids and we want to disable sharing.
Ideally the solution would be to either:
- Disable the iOS Share Screen for this App.
- Disable
in WKWebView (Swift, Objective-C).navigator.share
I have searched extensively for a solution, but since the Web Share API is somewhat recent there are not many resources out there.