title: Get the dynamic link, not the deep link - Firebase Dynamic Links on Android
body: <p>I have created a Firebase dynamic link, ex:</p>
  <pre><code>dynamic link: https://my.dynamic.link
  deep link: https://my.deep.link
  </code></pre>
  <p>When someone visits that dynamic link it will either open my app if it's installed or open Google Play to install my app.</p>
  <p>I'm not creating dynamic links using the android app, but I need to add parameters to that same dynamic link, ex:</p>
  <pre><code>https://my.dynamic.link/?p1=a&amp;p2=b
  https://my.dynamic.link/?p3=c
  https://my.dynamic.link/?p5=e&amp;p6=f
  </code></pre>
  <p>Now what I want is to retrieve the full dynamic link (not the deep link) within my android application. <a href="https://firebase.google.com/docs/dynamic-links/android/receive?authuser=1#handle_deep_links" rel="nofollow noreferrer">Firebase docs</a> gives a proper way to retrieve the deep link. That's not what I want.</p>
  <pre class="lang-java prettyprint-override"><code>FirebaseDynamicLinks.getInstance()
      .getDynamicLink(getIntent())
      .addOnSuccessListener(this, new OnSuccessListener&lt;PendingDynamicLinkData&gt;() {
          @Override
          public void onSuccess(PendingDynamicLinkData pendingDynamicLinkData) {
              if (pendingDynamicLinkData != null) {
                  pendingDynamicLinkData.getLink(); // --&gt; https://my.deep.link 
  
                  /*
                     what I want is the dynamic link with parameters
                     https://my.dynamic.link/?p1=a&amp;p2=b
                  */
              }
          }
      }
  );
  </code></pre>
  <p>Is there a way to achieve this?</p>