URLs must be universal links and have an app configured to open them.
SDKs
- iOS 10.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
Framework
- UIKit
Declaration
const UIApplication Open External URLOptions Key UIApplicationOpenURLOptionUniversalLinksOnly;
Discussion
When you include this key in the options dictionary of the open
method, the method opens the URL only if the URL is a valid universal link and there is an installed app capable of opening that URL. The value of this key is an NSNumber
object containing a Boolean value.