似乎
bool result = await Launcher.LaunchUriAsync(target);
不喜欢什么时候
target = new Uri(someInternalWebsite);
结果总是等于“假”。但是,如果我改变
,它可以正常工作// FROM
target = new Uri(someInternalWebsite);
// TO
target = new Uri(someExternalWebsite);
我尝试过禁用我的代理设置但没有运气。是否有任何可能影响此问题的隐藏.NET设置?以下是一些有效和无效的例子:
// these worked
target = new Uri("https://www.google.com");
target = new Uri("https://www.google.corp"); // obvious goes nowhere but still launches
// these did not work
target = new Uri("https://portal.<site_code>.<my_company>.corp"); //<my_company> and <site_code> are replaced with appropriate values
target = new Uri("https://<my_company>.corp");