0

I open my site through a webview, inside the page there are links with the tag <_blank>, but the application treats them as if they were not inside the webview (if it wants them to be pdf links). I tried to check around but I can't find anything that suits me. I saw that I can use the BrowserLaunchMode function, but I go back to the starting point because I don't know how to implement it in the webview and above all I don't know how to make the app recognize that I'm clicking a link. Could someone please tell me if there is a way to check when I touch the webview if I am clicking a link please?

  • So you load a website inside a web view on one of your app pages? Then when you click a link inside the web view you want to know if you are clicking a link and launch an external browser? – CodingLumis Oct 28 '21 at 10:23
  • 1
    https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/webview?tabs=macos#events – Jason Oct 28 '21 at 12:05
  • @CodingLumis inside the webview I click on a link that should lead to a page that downloads a pdf –  Oct 28 '21 at 15:29
  • @DavideTramontano and when you click that link does it not download the PDF? I'm trying to understand what behaviour you want. – CodingLumis Oct 29 '21 at 08:14
  • i wish that when i click on the link i download the pdf, but nothing happens –  Oct 29 '21 at 12:21
  • how about the document above – Adrain Nov 01 '21 at 01:42
  • I'm trying to use the navigating, but with all the links that have the _blank target it doesn't even check –  Nov 03 '21 at 08:45
  • check this question https://stackoverflow.com/questions/64610409/xamarin-android-webview-dont-fire-navigating-if-target-blank – Adrain Nov 04 '21 at 01:35

0 Answers0