Firebase动态链接始终返回CANCELED

Cec*_*oCQ 7 android deep-linking firebase firebase-dynamic-links

我正在为我的应用使用动态链接.

我一步一步地按照教程,我可以通过点击Facebook上发布的链接打开应用程序.

但是当我调用getInvitation时,我总是将CANCELED作为AppInviteInvitationResult的状态.

    AppInvite.AppInviteApi.getInvitation(mGoogleApiClient, this, false).setResultCallback(
            new ResultCallback<AppInviteInvitationResult>() {
                @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.");
                    }
                }
            });
Run Code Online (Sandbox Code Playgroud)

进入调试,我可以看到result.getStatus()返回CANCELED,但点击舔正确打开应用程序.

哪里我错了?

编辑:我正在使用的链接是:https://wft4z.app.goo.gl/? link = https://aqld.it/testlink/112972&al=aqld://test/about?params%3D17363&apn= com.project.mydeeplink

清单上的过滤器:

dii*_*idu 0

当没有收到意图时,状态被取消。我想知道同样的事情,结果发现我在 firebase 网页中创建的链接是错误的。我写了一些关于如何调试 url 问题的想法作为另一个问题的答案。如果您遇到和我一样的问题,它们应该会有所帮助:

/sf/answers/2633062281/