diff --git a/src/client/Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs b/src/client/Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs index f5be2a9da0..914cb51ab9 100644 --- a/src/client/Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs +++ b/src/client/Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs @@ -181,7 +181,7 @@ private Dictionary CreateBrokerRequestDictionary( [System.Diagnostics.CodeAnalysis.SuppressMessage("Interoperability", "CA1422:Validate platform compatibility", Justification = "")] public void HandleInstallUrl(string appLink) { - DispatchQueue.MainQueue.DispatchAsync(() => UIApplication.SharedApplication.OpenUrl(new NSUrl(appLink))); + DispatchQueue.MainQueue.DispatchAsync(() => UIApplication.SharedApplication.OpenUrl(new NSUrl(appLink), new UIApplicationOpenUrlOptions(), null)); throw new MsalClientException( MsalError.BrokerApplicationRequired, diff --git a/src/client/Microsoft.Identity.Client/Platforms/iOS/EmbeddedWebview/WKWebNavigationDelegate.cs b/src/client/Microsoft.Identity.Client/Platforms/iOS/EmbeddedWebview/WKWebNavigationDelegate.cs index 8518a4a36f..a1faeadee3 100644 --- a/src/client/Microsoft.Identity.Client/Platforms/iOS/EmbeddedWebview/WKWebNavigationDelegate.cs +++ b/src/client/Microsoft.Identity.Client/Platforms/iOS/EmbeddedWebview/WKWebNavigationDelegate.cs @@ -43,7 +43,7 @@ public override void DecidePolicy(WKWebView webView, WKNavigationAction navigati #pragma warning disable CA1422 // Validate platform compatibility DispatchQueue.MainQueue.DispatchAsync( - () => UIApplication.SharedApplication.OpenUrl(new NSUrl(requestUrlString))); + () => UIApplication.SharedApplication.OpenUrl(new NSUrl(requestUrlString), new UIApplicationOpenUrlOptions(), null)); #pragma warning restore CA1422 // Validate platform compatibility _authenticationAgentUIViewController.DismissViewController(true, null); decisionHandler(WKNavigationActionPolicy.Cancel);