title: Firebase Deep-link opening play store even when the app is installed
body: <p>I'm developing an android app.</p>
  
  <p>Upon clicking a button, a deep-link is generated and shared with friends.</p>
  
  <p>The problem is that upon clicking that shared deep-link, play store is getting opened even when the app is installed.</p>
  
  <p>I followed <a href="https://firebase.google.com/docs/dynamic-links/android" rel="noreferrer">this</a> documentation.</p>
  
  <p>Here's the <code>intent-filter</code>:</p>
  
  <pre><code>            &lt;!-- [START link_intent_filter] --&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.VIEW"/&gt;
  
                  &lt;category android:name="android.intent.category.DEFAULT"/&gt;
                  &lt;category android:name="android.intent.category.BROWSABLE"/&gt;
  
                  &lt;data android:host="example.com" android:scheme="http"/&gt;
                  &lt;data android:host="example.com" android:scheme="https"/&gt;
              &lt;/intent-filter&gt;
              &lt;!-- [END link_intent_filter] --&gt;
  </code></pre>
  
  <p>Here's how I'm creating the url (manually):</p>
  
  <pre><code>        Uri BASE_URI = Uri.parse("https://domainname.com/");
          packageName = getBaseContext().getPackageName();
          APP_URI = BASE_URI.buildUpon().path(requestID.getText().toString().trim())
               .appendQueryParameter("query1", query1.getText().toString())
               .appendQueryParameter("query2", query2.getText().toString())
               .appendQueryParameter("query3", query3.getText().toString()).build();
  
          try {
             String encodedUri = URLEncoder.encode(APP_URI.toString(), "UTF-8");
             deepLink = Uri.parse("https://myappcode.app.goo.gl/?link="+encodedUri+"&amp;apn="+holder.packageName+"&amp;amv="+16+"&amp;ad="+0);
          } catch (UnsupportedEncodingException e) {
             e.printStackTrace();
          }
  </code></pre>
  
  <p>Here's the received deep-link/url:  <code>http://domainname.com/-KcldzAeJHrPS5tnfxTk?query1=query1&amp;query2=query2&amp;query3=query3</code></p>
  
  <p>What could be wrong here?</p>