Skip to content

Commit f29be92

Browse files
authored
update the deprecated openURL(:) api to openURL(:options:completionHandler) (#4980)
* update the api openURL(:) to open(:options:completionHandler) as openURL(:) is deprecated
1 parent ac1cb05 commit f29be92

File tree

1 file changed

+1
-1
lines changed
  • src/client/Microsoft.Identity.Client/Platforms/iOS/Broker

1 file changed

+1
-1
lines changed

src/client/Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private async Task InvokeIosBrokerAsync(Dictionary<string, string> brokerPayload
219219
() => iOSBrokerConstants.BrokerPayloadPii + paramsAsQuery,
220220
() => iOSBrokerConstants.BrokerPayloadNoPii + brokerPayload.Count);
221221

222-
DispatchQueue.MainQueue.DispatchAsync(() => UIApplication.SharedApplication.OpenUrl(url));
222+
DispatchQueue.MainQueue.DispatchAsync(() => UIApplication.SharedApplication.OpenUrl(url, new UIApplicationOpenUrlOptions(), null));
223223

224224
using (_logger.LogBlockDuration("waiting for broker response"))
225225
{

0 commit comments

Comments
 (0)