title: Clicking the Firebase dynamic link does not call the application (_: continue: restorationHandler :) method in AppDelegate
body: <p>Using Firebase Dynamic Links, I want to be able to click a link to open an iOS app.</p>
  
  <p>The app is under development and is not yet on the AppStore.</p>
  
  <p>I set it while looking at the document, but even if the app is started by clicking the link, the application (_: continue: restorationHandler :) method in AppDelegate is not called.</p>
  
  <p>I set it according to the following procedure. Is something wrong?
  　</p>
  
  <ol>
  <li><p>Add "pod 'Firebase / DynamicLinks'" to Podfile and install</p></li>
  <li><p>Open the .xcworkspace file</p></li>
  <li><p>Create Dynamic Links “<a href="https://XXXX.page.link/test" rel="nofollow noreferrer">https://XXXX.page.link/test</a>”</p></li>
  <li><p>Access “<a href="https://XXXX.page.link/apple-app-site-association" rel="nofollow noreferrer">https://XXXX.page.link/apple-app-site-association</a>”</p>
  
  <blockquote>
    <p>{"applinks":{"apps":[],"details":[{"appID":"XXXXXXX.[Bundle
    ID]","paths":["NOT /_/<em>","/</em>"]}]}}</p>
  </blockquote></li>
  <li><p>Create a URL type to use for dynamic links
  <a href="https://i.stack.imgur.com/Zlt9Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zlt9Z.png" alt="enter image description here"></a></p></li>
  <li><p>Enable "Associated Domains" and add "applinks: XXXX.page.link"
  <a href="https://i.stack.imgur.com/fAAsF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fAAsF.png" alt="enter image description here"></a></p></li>
  <li><p>Implement AppDelegate as below</p>
  
  <pre><code>import UIKit
  import Firebase
  import FirebaseDynamicLinks
  
  @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate {
  
      func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -&gt; Bool {
          // Override point for customization after application launch.
          FirebaseApp.configure()
          return true
      }
  
      // MARK: UISceneSession Lifecycle
  
      func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -&gt; UISceneConfiguration {
          // Called when a new scene session is being created.
          // Use this method to select a configuration to create the new scene with.
          return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
      }
  
      func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set&lt;UISceneSession&gt;) {
          // Called when the user discards a scene session.
          // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
          // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
      }
  
      func application(_ application: UIApplication, continue userActivity: NSUserActivity,
                   restorationHandler: @escaping ([UIUserActivityRestoring]?) -&gt; Void) -&gt; Bool {
        let handled = DynamicLinks.dynamicLinks().handleUniversalLink(userActivity.webpageURL!) { (dynamiclink, error) in
          // ...
        }
  
        return handled
      }
  
      @available(iOS 9.0, *)
      func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any]) -&gt; Bool {
        return application(app, open: url,
                       sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
                       annotation: "")
      }
  
      func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -&gt; Bool {
        if let dynamicLink = DynamicLinks.dynamicLinks().dynamicLink(fromCustomSchemeURL: url) {
          // Handle the deep link. For example, show the deep-linked content or
          // apply a promotional offer to the user's account.
          // ...
          return true
        }
        return false
      }
  }
  </code></pre></li>
  </ol>