通常のAPP
The typical user experience involves knowing that the content or function exists in your app; then, navigating through some hierarchy of use in order to find it. This is called the user journey or user activity.
Deep Linkingとは?
Deep links are a way to offer direct access to the content and functions in your app.The way it works is your app is launched, you receive a link, and the app displays the content. The same can be done to complete a function in your app automatically.
Demo
Universal Link(iOS 9以降)
- The transport syntax for Deep Links
- Securely map to apps you choose Work universally
- fall back to Safari
Universal Links実装
- Associated Domainsの追加
- apple-app-site-associationを作成し、Webサイト上に配置
- AppDelegateの実装
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Void) -> Bool
利用シーン
- Siri App Suggestions Hand Off (by registering NSUserActivities)
- Widgets
- Quick Actions
- SiriKit
- App to App
- TV Services
参考資料
http://dev.classmethod.jp/smartphone/universal-links/
https://developer.apple.com/jp/documentation/General/Conceptual/AppSearch/UniversalLinks.html
https://developer.apple.com/videos/play/wwdc2017/250