title: How to configure deep-linking in iOS with Firebase Dynamic Links?
body: <p>I'm trying to configure Firebase Dynamic Links into my iOS project and I'm having trouble interpreting the <a href="https://firebase.google.com/docs/dynamic-links/create-manually?authuser=1" rel="nofollow noreferrer">documentation here</a> and how it needs to be adapted to my specific scenario.</p>
  
  <p>In particular, when creating a deep link manually, I don't know what I should put instead of <code>your_deep_link</code> in the following example:</p>
  
  <pre><code>https://your_subdomain.page.link/?link=your_deep_link&amp;apn=package_name[&amp;amv=minimum_version][&amp;afl=fallback_link]
  </code></pre>
  
  <p>They say it should be <code>http</code> or <code>https</code>, so I used a generic https website URL for the marketing page of my app. But then in XCode, in <a href="https://firebase.google.com/docs/dynamic-links/ios/receive?authuser=1" rel="nofollow noreferrer">this doc there</a> they say:</p>
  
  <blockquote>
    <p>In the Info tab of your app's Xcode project, create a new URL type to
    be used for Dynamic Links. Set the Identifier field to a unique value
    and the URL scheme field to be your bundle identifier, which is the
    default URL scheme used by Dynamic Links.</p>
  </blockquote>
  
  <p>So nowhere do I specify that my app should be open instead of the marketing website when loading on a device where the app is already installed. And I think that's why when I try to open this link in my iPhone's browser, it just loads the page there in the browser:</p>
  
  <pre><code>https://debugapproofreferences.page.link/?link=https%3A%2F%2Fapproof.derbigum.com%2Freferences%2Fleads%2F5b98ca7a-18f7-4ffa-8dbe-aed51b94f18b&amp;apn=com.derbigum.approofreferences&amp;ibi=com.derbigum.ApproofReferences&amp;isi=1321450315
  </code></pre>
  
  <p>Note that I have 3 variants of the same app depending on the environment (Debug, Beta, Prod), so associated domain is set to <code>applinks:$(DEEP_LINKS_DOMAIN)</code>, and <code>DEEP_LINKS_DOMAIN</code> is a user-defined setting depending on the environment, and for the Debug environment I'm working on right now, <code>DEEP_LINKS_DOMAIN=debugapproofreferences.page.link</code>.</p>
  
  <p>Obviously I'm missing something here, and it's the first time I ever try to configure deep links so I'm a little lost.</p>