Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Xamarin.Essentials/Browser/Browser.ios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ static async Task<bool> PlatformOpenAsync(Uri uri, BrowserLaunchOptions options)
await vc.PresentViewControllerAsync(sfViewController, true);
break;
case BrowserLaunchMode.External:
return await UIApplication.SharedApplication.OpenUrlAsync(nativeUrl, new UIApplicationOpenUrlOptions());
if (Platform.HasOSVersion(12, 0))
{
return await UIApplication.SharedApplication.OpenUrlAsync(nativeUrl, new UIApplicationOpenUrlOptions());
}
else
{
UIApplication.SharedApplication.OpenUrl(nativeUrl);
}
break;
}

return true;
Expand Down