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 コンソールには、「Short Dynamic Link」と「Long Dynamic Link」が表示されます。それらでテストする必要がありますか?

4

0 に答える 0