[英]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.