Skip to content

Instantly share code, notes, and snippets.

@AndreyPanov
Last active April 9, 2017 17:06
Show Gist options
  • Save AndreyPanov/3e2c5f05513fa10f2c0d05961379e1aa to your computer and use it in GitHub Desktop.
Save AndreyPanov/3e2c5f05513fa10f2c0d05961379e1aa to your computer and use it in GitHub Desktop.
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