深层链接无法通过Firebase电子邮件验证链接运行

时间:2018-12-03 20:20:13

标签: android firebase kotlin firebase-authentication

我已经在firebase控制台中设置了一个深层链接,更新了SHA1,SHA256,我尝试从移动浏览器调用该深层链接,它完美地打开了已安装的应用程序,但是当我尝试使用从应用程序发送的电子邮件验证链接时,它就进入了商店。以下是发送验证链接的方式

val actionCodeSettings = ActionCodeSettings.newBuilder()
            .setUrl("https://testapp.page.link?login=true")
            .setHandleCodeInApp(true)
            .setIOSBundleId("test.example.com")
            .setAndroidPackageName(
                    "test.example.com",
                    true, 
                    "12" )
            .build()


    mAuth!!.sendSignInLinkToEmail(email, actionCodeSettings)
            .addOnCompleteListener { task ->
                if (task.isSuccessful) {
                    Log.d("EmailVerification", "Email sent.")
                }
            }

我的意图过滤器如下所示

 <intent-filter>
            <action android:name="android.intent.action.VIEW" />

            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />



            <data
                android:host="testapp.page.link"
                android:scheme="http" />
            <data
                android:host="testapp.page.link"
                android:scheme="https" />

        </intent-filter>

我已将网域列入白名单,我重复了通过移动浏览器的链接,但没有通过电子邮件访问的链接。任何帮助表示赞赏

1 个答案:

答案 0 :(得分:1)

width

我认为您需要的应​​用程序版本“ 12”可能未安装在设备上。您可以为该字段或应用的当前版本传递null。

相关问题