Firebase Dynamic links always returned CANCELED
<p>I'm using dynamic links for my app.</p>

<p>I've followed the tutorial step-by-step and I'm able to open the app by clicking on the link posted on facebook.</p>

<p>But when I invoke getInvitation, I always have CANCELED as status of AppInviteInvitationResult.</p>

<pre><code>    AppInvite.AppInviteApi.getInvitation(mGoogleApiClient, this, false).setResultCallback(
            new ResultCallback&lt;AppInviteInvitationResult&gt;() {
                @Override
                public void onResult(@NonNull AppInviteInvitationResult result) {
                    if (result.getStatus().isSuccess()) {
                        // Extract deep link from Intent
                        Intent intent = result.getInvitationIntent();
                        String deepLink = AppInviteReferral.getDeepLink(intent);

                        // [END_EXCLUDE]
                    } else {
                        Log.d("StartActivity", "getInvitation: no deep link found.");
                    }
                }
            });
</code></pre>

<p>Into debug, I can see that result.getStatus() returns CANCELED, but the click on lick open the app correctly.</p>

<p>Where I'm wrong?</p>

<p>EDIT: The link that I'm using is:
<a href="https://wft4z.app.goo.gl/?link=https://aqld.it/testlink/112972&amp;al=aqld://test/about?params%3D17363&amp;apn=com.project.mydeeplink" rel="noreferrer">https://wft4z.app.goo.gl/?link=https://aqld.it/testlink/112972&amp;al=aqld://test/about?params%3D17363&amp;apn=com.project.mydeeplink</a></p>

<p>The filter on manifest:

            
                
                
                
                
            
        </p>