![](/img/trans.png)
[英]Alert Dialog with an option to request the email verification link from firebase is not working
[英]Deep link doesnt work from Firebase email verification link
我已经在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>
我已将网域列入白名单,我会重复通过移动浏览器进行链接,但不能通过电子邮件进行链接。 任何帮助表示赞赏
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()
我认为您需要的应用程序版本“ 12”可能未安装在设备上。 您可以为该字段或应用程序的当前版本传递null。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.