title: iOS, Universal links, Swift. continueUserActivity not calling
body: <p>I working on Universal links implementation for our iOS app.</p>
  
  <p>Here is my small piece of AppDelegate:</p>
  
  <pre><code>private func application(_ application: UIApplication, openURL url: URL, sourceApplication: String?, annotation: AnyObject) -&gt; Bool {
      DeepLinkHelpers.handleUniversalLink(url.absoluteString)
      return true
  }
  
  private func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]?) -&gt; Void) -&gt; Bool {
      DeepLinkHelpers.handleUniversalLink(userActivity.webpageURL?.absoluteString)
      return true
  }
  
  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {
  
      signalRConnector.launch()
  
      NotificationCenter.default.addObserver(self, selector: #selector(AppDelegate.processRestartSignalRNotification(_:)), name: NSNotification.Name(rawValue: "restartSignalR"), object: nil)
  
      NotificationCenter.default.addObserver(self,                            selector: #selector(AppDelegate.reachabilityChanged(_:)),
                                             name: ReachabilityChangedNotification,
                                             object: reachability)
  
      do {
          try reachability.startNotifier()
      } catch {
          Logger.save(text: "Unable to start notifier")
      }
      return true
  }
  </code></pre>
  
  <p>I have processed all other steps for universal links integration:</p>
  
  <ol>
  <li>Published apple-app-site-association file in our Web application</li>
  <li>Switched on Associated domains feature on developers.apple.com</li>
  <li>Specified associated domains in xcode</li>
  <li>Checked Target Membership for entitlements file</li>
  <li>Said xcode to wait until app will be started manually (instead of
  autostart)</li>
  </ol>
  
  <p>I doing following to debug:</p>
  
  <ol>
  <li>Connecting ipad</li>
  <li>Starting project in xcode</li>
  <li>In ipad opening Calendar and click on link contained in some event.
  Link has following format: app.domain.com/#/123456789</li>
  <li>Ipad opens app but continueUserActivity not calling and i can't
  handle code from the url for navigate to exact state within an app.</li>
  </ol>
  
  <p>According documentation continueUserActivity should be executed. It is not executing both when app is running in background and when app not running.</p>
  
  <p>Thank you in advance! Any help appreciated.</p>