title: DFL parameter in Firebase Dynamic Links Builder
body: <p>I need to programmatically build a dynamic link using the Dynamic Link Builder API on Android (<a href="https://firebase.google.com/docs/dynamic-links/android/create" rel="nofollow noreferrer">https://firebase.google.com/docs/dynamic-links/android/create</a>). This is the only option applicable for my case since I need to track click data and shorten links.</p>
  
  <p>This link can be opened on the desktop, but the problem is that the link will be eligible only for mobile apps - the website is unable to recognize this link (this behavior is intentional). I would like the desktop user is directed to the website's main page.  </p>
  
  <p>Here is the quote from Firebase doc:</p>
  
  <blockquote>
    <p>When users open a Dynamic Link on a desktop web browser, they will load this URL (unless param dfl is specified). If you don't have a web equivalent to the linked content, the URL doesn't need to point to a valid web resource. In this situation, you should set up a redirect from this URL to, for example, your home page.</p>
  </blockquote>
  
  <p>I see I need <strong>dfl</strong> parameter. (<strong>dfl is The link to open on desktop, overriding param link.</strong>) How can I specify <strong>dfl</strong> parameter using Dynamic Links Builder on Android?</p>
  
  <p>I know that I can specify <strong>dfl</strong> by building dynamic link manually -   <a href="https://firebase.google.com/docs/dynamic-links/create-manually" rel="nofollow noreferrer">https://firebase.google.com/docs/dynamic-links/create-manually</a>
  But this approach is not useful for me since it has such constraints: </p>
  
  <blockquote>
    <p>If you don't need to track click data in the Firebase console and you don't care if the links are long...</p>
  </blockquote>
  
  <p>Does anybody know the right solution or some trick to achieve this? Any thoughts/ideas would be appreciated!</p>