0

I know this question is already around, but i have read and tried all the things i found but i could not find a solution that is right for me. I connect to a site via webview, with the OnNavigating method I can open the links in the browser of the device, the problem I have, however, is that the links with the target "_blank", it does not read them at all and does not even check. Anyone who could help me out?

This is the code

protected void webOnNavigating(object sender, WebNavigatingEventArgs e)
    {
        
        if (e.Url.Contains("http") ^ (e.Url.Contains("http://test.liberobit.biz:8011/lb_gets_ar_web/test-documenti.aspx")))
        {
            // Retrieving the URL
            //var pdfUrl = new Uri(e.Url);
        }
        else
        {
            return;
        }

            // Open PDF URL with device browser to download
            Device.OpenUri(new Uri(e.Url));

            // Cancel the navigation on click actions (retains in the same page.)
            e.Cancel = true;


    }

0 Answers0