title: Deep linking react native app on Android
body: <p>I'm trying to get make a url open the app and to have some data with this url passed into the app, but it doesn't work.</p>
  
  <p>My activity tag in AndroidManifest.xml:</p>
  
  <pre><code>  &lt;activity
      android:name=".MainActivity"
      android:label="@string/app_name"
      android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
      android:windowSoftInputMode="adjustResize"
      android:launchMode="singleTask"&gt;                         &lt;-- added this
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN" /&gt;
          &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
      &lt;/intent-filter&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="fcm.ACTION.HELLO" /&gt;
          &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;/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:scheme="conv"
          android:host="convid"/&gt; &lt;-- so urls of the form 'conv://convid/ will open the app
       &lt;/intent-filter&gt;
    &lt;/activity&gt;
  </code></pre>
  
  <p>And I added to the entry class of the app:</p>
  
  <pre><code>  componentDidMount() {
      Linking.addEventListener('url', (e) =&gt; {
        console.log("url", e);
      });
  
      Linking.getInitialURL().then((url) =&gt; {
        if (url) {
          console.log('Initial url is: ' + url);
        }
      })
    }
  </code></pre>
  
  <p>But when I open the browser and go to <code>conv://convid</code> nothing is being logged and the app doesn't open. </p>
  
  <p>Of course I opened my app before the browser. </p>