When I click on a link within my WebView
, it behaves as expected - it opens the link within the WebView
.
However, if an app can handle that link, I would like to open that app instead. For example, if I tap on a Twitter link, I would like it to open Twitter, else open in-app.
This is how Google Chrome on Android behaves. This is also how WKWebView
, the iOS equivalent of WebView
, also behaves.
How would I go about implementing that? I have attempted to implement the solutions here but now my app always wants to open the system browser.