macOS 10.15 supports Universal Links with AppKit / UIKit
Securely associated between your app & website
recommended over custom URL schemes
Webserver Config
HTTPS certificate mandatory. Custom root certificates not supported
Add the file at
https://yourDomain.com/.well-known/apple-app-site-associationURLs and pattern matching are ASCII
App Config
add
Associated Domainscapability and addapplinks:www.example.comentries (patterns possible - specific subdomains prioritized)userActivity.activityType == NSUserActivityTypeBrowsingWebinfunc application(_ application: UIApplication, continue userActivity: NSUserActivity, ...)indicates Universal Linkget URL components
URLComponents(url: userActivity.webpageURL, resolvingAgainstBaseURL: true)
For macOS Apps
app must be on local volume
App Store distribution recommended
Developer ID signed apps must be launched first
What’s New in Universal Links
Universal Links allow your users to intelligently follow links to content inside your app or to your website. Learn how the latest enhancements in Universal Links give your users the most integrated mobile and desktop experience, even when your app isn’t installed on their device.
Missing anything? Corrections? Contributions are welcome!
Written By

Blackjacx