locked
LaunchUriAsync return false for a https link RRS feed

  • Question

  • I try to open a URI link with method LaunchUriAsync, but it failed.

     private async void OpenUrlLink(string url)
            {
                if (url.Substring(0, 4).Equals("file"))
                {
                    MSPdfLog.LogD("Unsupported link type");
                    return;
                }
                var result = await Windows.System.Launcher.LaunchUriAsync(new Uri(url));
                if (result)
                {
                    MSPdfLog.LogD("Link open success");
                }
                else
                {
                    MSPdfLog.LogD("Link open failed");
                }
            }


    I use chrome/Edge to open the same PDF file and click on the link, it can work well, and directly open the link in Chrome/Edge also work well.  I call it from UI thread, and also I can successfully open https link like https://www.google.com.hk/webhp?hl=zh-CN&sourceid=cnhp&gws_rd=ssl. So I want to know the reason why the method returns false on my specific link? Can anyone help?


    • Edited by NewCoder007 Monday, January 22, 2018 2:49 PM
    Monday, January 22, 2018 2:46 PM