2

所以我添加了一个测试 Firebase 深层链接,我该如何测试它是否有效?我为调试和发布密钥等添加了 SHA-1。

然后在安装后如果我给出这个命令:

$ adb shell am start
    -W -a android.intent.action.VIEW
    -d "http://myurl.com" com.mypackage

我的意图开始了,然后在这部分:

AppInvite.AppInviteApi
        .getInvitation(googleApiService.getmGoogleApiClient(), (Activity)getContext(), true)
        .setResultCallback((result) -> {
            Log.d(TAG, result.getStatus().toString());
            if (result.getStatus().isSuccess()) {
                // Extract deep link from Intent
                Intent intent = result.getInvitationIntent();
                String deepLink = AppInviteReferral.getDeepLink(intent);
                Log.d(TAG, "Deep link: "+deepLink);
            }
        });

它说

Status{statusCode=CANCELED, resolution=null}

在 Firebase 控制台中,我看到“短动态链接”和“长动态链接”。我应该用那些测试吗?

4

0 回答 0