El enlace dinámico de Firebase no abre la aplicación

He desarrollado una aplicación de Android localmente en mi dispositivo (la aplicación aún no está en Android Play Store). Tengo la siguiente lógica para obtener un enlace profundo en MainActivity.

GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(this)
            .enableAutoManage(this, null)
            .addApi(AppInvite.API)
            .build();

    // Check if this app was launched from a deep link. Setting autoLaunchDeepLink to true
    // would automatically launch the deep link if one is found.
    boolean autoLaunchDeepLink = false;
    AppInvite.AppInviteApi.getInvitation(mGoogleApiClient, this, autoLaunchDeepLink)
            .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);

                                Toast.makeText(getApplicationContext(), deepLink, Toast.LENGTH_LONG).show();
                                // Handle the deep link. For example, open the linked
                                // content, or apply promotional credit to the user's
                                // account.

                                // ...
                            } else {
                                Log.d(TAG, "getInvitation: no deep link found.");
                            }
                        }
                    });

Construí algunos enlaces dinámicos usando la consola Firebase y los abrí en el navegador móvil. Pero no está abriendo mi aplicación y llegando a la línea String deepLink = AppInviteReferral.getDeepLink (intento);

En cambio, está abriendo la URL en el navegador móvil.

¿Cómo abrir la aplicación y manejar el enlace profundo en la actividad mientras se usa el enlace dinámico de Firebase?

Editar:

Tengo intención de filtrar en el archivo de manifiesto.

<activity android:name="MainActivity"
        android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            <action android:name="android.intent.action.VIEW"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <category android:name="android.intent.category.BROWSABLE"/>
            <data android:host="example.com" android:scheme="http"/>
            <data android:host="example.com" android:scheme="https"/>
        </intent-filter>
    </activity>

Respuestas a la pregunta(5)

Su respuesta a la pregunta