title: Universal link not performing action despite url being hit
body: <p>I've successfully implemented universal links in to my app. The AASA is live on my website, and running the following command in my terminal successfully boots the app as expected:</p>
  <pre><code>xcrun simctl openurl booted https://websiteurl.com
  </code></pre>
  <p>Note - the url is different in practice.</p>
  <p>For reference, this is my AASA structure:</p>
  <pre><code>{
    &quot;applinks&quot;: {
      &quot;apps&quot;: [],
      &quot;details&quot;: [
        {
          &quot;appID&quot;: &quot;identifier.bundle_id&quot;,
          &quot;paths&quot;: [&quot;*&quot;]
        }
      ]
    }
  }
  </code></pre>
  <p>However, my eventual aim with these universal links is to integrate it into an API which requires a redirect URI, where I send users back to the app.</p>
  <p>As a result, I've created a ViewController, imaginatively called CallbackViewController. I will redirect users to this screen when the app is ready.</p>
  <p>For now, I've introduced the following code into my AppDelegate file. The aim here is to print 'callback' when a universal link with the phrase 'callback' in is hit. However, when running the initial command in my terminal and adding /callback onto the end, nothing happens.</p>
  <pre><code>   func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -&gt; Void) -&gt; Bool {
          guard userActivity.activityType == NSUserActivityTypeBrowsingWeb,
              let url = userActivity.webpageURL, let components = URLComponents(url: url, resolvingAgainstBaseURL: true) else {
              return false
              }
          
          if (components.path.contains(&quot;callback&quot;)) {
              print(&quot;callback hit...&quot;)
          }
          return true
      }
  </code></pre>
  <p>Does anyone know what I'm doing wrong in this function? I'm wondering if it's related to my AASA but unsure.</p>
  <p>Thanks!</p>