//Callback methods internal static void OnRedirectDone(object sender, AppLinkRedirector.AppLinkRedirectorArgs e) { if (sender.Equals(currentRedirector)) { Utils.log("OnRedirectDone"); currentRedirector = null; } }
internal static void OnRedirectFailed(object sender, AppLinkRedirector.AppLinkRedirectorArgs e) { if (sender.Equals(currentRedirector)) { if (e.fallbackUrl != null) { Utils.log("OnRedirectFailed fallbackUrl: " + e.fallbackUrl); WebBrowserTask task = new WebBrowserTask(); task.Uri = new Uri(e.fallbackUrl); try { task.Show(); } catch (Exception) { //Just don't show the task } } currentRedirector = null; } }