简体   繁体   English

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

[英]Deep link doesnt work from Firebase email verification link

I have setup a deep link in firebase console ,updates SHA1, SHA256 and I tried calling the deep link from mobile browser it perfectly opens installed app , but when I try using email verification link sent from app it goes to play store. 我已经在firebase控制台中设置了一个深层链接,更新了SHA1,SHA256,我尝试从移动浏览器调用该深层链接,它完美地打开了已安装的应用程序,但是当我尝试使用从应用程序发送的电子邮件验证链接时,它就会进入商店。 Below is how verification link is being sent 以下是发送验证链接的方式

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.")
                }
            }

My intent filter looks like below 我的意图过滤器如下所示

 <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>

I have whitelisted the domain , I repeat the link works from mobile browser but not from email. 我已将网域列入白名单,我会重复通过移动浏览器进行链接,但不能通过电子邮件进行链接。 Any help appreciated greatly 任何帮助表示赞赏

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

I think you are requiring version "12" of your app which is likely not installed on device. 我认为您需要的应​​用程序版本“ 12”可能未安装在设备上。 You can pass null for that field or the current version of your app. 您可以为该字段或应用程序的当前版本传递null。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 警报对话框以及从firebase请求电子邮件验证链接的选项不起作用 - Alert Dialog with an option to request the email verification link from firebase is not working Firebase 与 flutter 动态链接:深层链接 URL 未打开应用程序 - Firebase dynamic link with flutter: Deep link URL doesnt open app firebase:如何链接电子邮件验证和密码 - firebase: how to link email verification and password 在Firebase中使用电子邮件链接验证身份验证链接SMS OTP身份验证 - Link SMS OTP authentication with Email link verification authentication in firebase 深层链接在 Android 上的电子邮件中未显示为可点击的链接 - Deep link not appearing as a clickable link in an email on Android Deep Link无法在Android上运行 - Deep Link does not work on Android 深度链接不适用于Branch - Deep link does not work with Branch Facebook Link无法在android上运行 - Facebook Link doesnt work android 如果应用程序已通过深层链接打开,则 Android 深层链接不起作用 - Android deep link does not work if the app is opened by deep link already 我想在不使用 Firebase 身份验证的情况下向用户电子邮件发送验证链接 [Flutter] - I want to send a verification link to users email without using firebase authentication [Flutter]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM