Launch Safari from app on iOS 14 when Safari is not the default browser using the scheme of the URL Launch Safari from app on iOS 14 when Safari is not the default browser using the scheme of the URL google-chrome google-chrome

Launch Safari from app on iOS 14 when Safari is not the default browser using the scheme of the URL


Seems that "forcing" to open links with

UIApplication.shared.open(url, options: [:], completionHandler: nil)

opens links on other browsers also, with the risk of crashes in case of broken URL.I was also using canOpenURL so far to be sure, so now need to check during development and hope will work if device have other browser.


It was true when I set Safari as a default browser. But I changed it to the other browsers like Chrome and Edge, then it was false.

Adding https & http into LSApplicationQueriesSchemes, it was the result I had hoped for.