Posts

Post not yet marked as solved
0 Replies
900 Views
I am displaying HTML-content using a WKWebView. The HTML might contain addresses (locations like Apple Campus, Cupertino, CA 95014, USA). The default behavior of WKWebView is to highlight the address as a clickable link.A long press on that link is opening an alert with all the default options like Get Directions, Open in Maps, just as it is working in Apple Mail. But if I simply press the link, it is highlighted, but nothing happens. In comparison, in Apple Mail pressing the link would open the Maps App. This is also my desired behavior.If I use a WKNavigationDelegate in order to receive the URL generated from the address, it’s x-apple-data-detectors://0, so something that is probably intended for internal use only. But I don't know how to achieve the same behavior as Apple Mail in normal way.
Posted Last updated
.