I have a WebView in my app that displays a webpage. That webpage has a link in this format (ie using target="_blank")
<a href="https://www.w3schools.com" target="_blank">Link</a>
When i click on the link in the app on my Android device nothing happens, no navigating event occurs. My intention for the link was to intercept it via the navigating event and launch it in the devices default web browser (as its an external link away from my site which is being displayed in the webview). Problem is I don't get the event (or anything else) on Android when the link is clicked.
On iOS this works fine.
I have tested both the latest 4.x Xamarin Forms and the 5.0 version as well.
The simplest way to repo is to create a XF apps and add the following webview to the main page
<WebView x:Name="webView" Source="https://www.w3schools.com/tags/att_a_target.asp" WidthRequest="1000" HeightRequest="1000" />
Run the app on Android and click the [Try it Yourself] button on the webpage, nothing happens. The debug console output just shows these lines each time i click the link, but nothing else happens.
01-14 15:35:06.378 D/[email protected][MainActivity](15009): ViewPostIme pointer 0
01-14 15:35:06.509 D/[email protected][MainActivity](15009): ViewPostIme pointer 1
01-14 15:35:06.554 D/InputMethodManager(15009): HSIFW - flag : 0
Any ideas, am I just missing something obvious?