title: DeepLink opens app but callback in not firing until the app goes to background
body: <p><strong>EDITED:</strong></p>
  
  <blockquote>
    <p>Right now my only issue with deep linking is that whenever i click
    deeplink and My application is not running it will open my
    HomeActivity and deeplinked Activity in background. If i press back
    button from HomeActivity my app minimizes and when i start it again
    deeplink Activity gets called only then and is redirected to correct
    Activity.</p>
  </blockquote>
  
  <p>Hello Everyone I want to implement Facebook deep linking from this reference 
  <a href="https://developers.facebook.com/docs/app-ads/deep-linking" rel="nofollow noreferrer">https://developers.facebook.com/docs/app-ads/deep-linking</a>.
  and i was successful with it but if my app is not running, it just redirects me to home screen when clicking deeplink from Facebook app. I can't seem to find solution to it can anyone help me out?</p>
  
  <p>I have followed step by step instructions:</p>
  
  <p>Created FB app
  Added FB sdk to Android app
  When I run the app, it is detected by Facebook, verified on the <a href="https://developers.facebook.com/tools/app-ads-helper/" rel="nofollow noreferrer">https://developers.facebook.com/tools/app-ads-helper/</a></p>
  
  <pre><code>&lt;activity
          android:name=".activities.FacebookAdActivity"
          android:launchMode="singleTask"
          android:screenOrientation="portrait"
          android:theme="@style/AppTheme"&gt;
  
          &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="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="com.example.myapp" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>