Wednesday, February 27, 2019 [Tweets] [Favorites]

UIApplicationOpenURLOptionUniversalLinksOnly

Jeff Nadeau:

Hi, please preflight URLs with UIApplicationOpenURLOptionUniversalLinksOnly before jamming them in a SFSafariViewController, thanks in advance

Rizwan:

As per apple docs “When you include this key in the options dictionary of the openURL:options:completionHandler: 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”

Robin Kunde shows how to do it in code.

See also: Allowing Apps and Websites to Link to Your Content.

As a user, I find Universal Links confusing because I don’t always know what’s going to happen when I tap a link, and I can’t seem override it to do what I want in a given situation.

Comments

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment