Last active
April 9, 2017 17:06
-
-
Save AndreyPanov/3e2c5f05513fa10f2c0d05961379e1aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func application(_ application: UIApplication, | |
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
let notification = launchOptions?[.remoteNotification] as? [String: AnyObject] | |
let deepLink = DeepLinkOption.build(with: notification) | |
applicationCoordinator.start(with: deepLink) | |
return true | |
} | |
func application(_ application: UIApplication, | |
didReceiveRemoteNotification userInfo: [AnyHashable : Any]) { | |
let dict = userInfo as? [String: AnyObject] | |
let deepLink = DeepLinkOption.build(with: dict) | |
applicationCoordinator.start(with: deepLink) | |
} | |
func application(_ application: UIApplication, continue userActivity: NSUserActivity, | |
restorationHandler: @escaping ([Any]?) -> Void) -> Bool { | |
let deepLink = DeepLinkOption.build(with: userActivity) | |
applicationCoordinator.start(with: deepLink) | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment