The below code works when I debug the app. internet explorer loads the uri. No problem there. But when I stop debugging and try it out, the internet explorer does open up with the URI loaded, but the app isn't running anymore. It just stops
private void appBtnOpenInIE_Click(object sender, RoutedEventArgs e)
{
var uri = readingWebView.Source;
var success = Windows.System.Launcher.LaunchUriAsync(uri);
}
appBtnOpenInIE is the SecondaryCommand from which I am trying to load the URI in Internet Explorer readingWebView is the WebView control I have loaded on the xaml page which has the web page loaded
Note that I am using the exact 2 lines of code in another case where I am loading a URI based on the click of a HyperlinkButton and that works fine too. The app continues to run in the background and Internet Explorer has the URI loaded