Я пытаюсь интегрировать динамическую ссылку Firebase в приложение для Android, но проблема в том, что даже если приложение установлено, динамическая ссылка выводит меня на страницу магазина игр, чтобы загрузить приложение из магазина игр.
Я отправил письмо с динамической ссылкой. Затем на смартфоне Android я открыл электронное письмо и нажал на динамическую ссылку, она всегда идет в магазин воспроизведения ..
Кто-нибудь сталкивался с той же проблемой и имел решение для того же.
Когда я проверял на https://firebase.google.com/docs/app-indexing/android/test
динамическая ссылка идет в приложение хорошо. Потому что приложение было установлено.
Я добавил SHA-1, ключ SHA-256 в свое приложение.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="io.chillingchat.android">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@drawable/adv"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
>
<activity
android:name="io.chillingchat.android.view.MainActivity"
android:label="@string/app_name">
</activity>
<activity
android:name="io.chillingchat.android.view.AuthActivity">
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<data
android:host="chillingchat.io"
android:scheme="https"/>
<data
android:host="chillingchat.io"
android:scheme="http"/>
</intent-filter>
</activity>
</application>
actionCodeSettings = ActionCodeSettings.newBuilder()
// URL you want to redirect back to. The domain (www.example.com)
// URL must be whitelisted in the Firebase Console.
.setUrl("https://chillingchat.page.link/in")
// This must be true
.setHandleCodeInApp(true)
.setAndroidPackageName(
"io.chillingchat.android",
true, /* installIfNotAvailable */
"16" /* minimumVersion */)
.build();