尝试发送附有动态 link 的帐户验证电子邮件时出错
Error while trying to send an account verification email with a dynamic link attached
尝试发送带有动态 link 附件的帐户验证电子邮件时出错。将 Google 服务更新到版本 14.3.66
后出现
- 使用电子邮件和密码在 firebase 身份验证中注册:
firebaseAuth.createUserWithEmailAndPassword(login, pass)
- 为深度 link:
的 firebase 用户发送电子邮件验证
val settings = ActionCodeSettings.newBuilder()
.setHandleCodeInApp(false)
.setUrl(BuildConfig.DEEP_LINK)
.build()
user.sendEmailVerification(settings)
- 在 addOnFailureListener 中捕获错误消息:
An internal error has occurred. [ MISSING_ANDROID_PACKAGE_NAME:Cannot install Android app without providing package name ]
您需要在代码中设置Android包名:
val settings = ActionCodeSettings.newBuilder()
.setHandleCodeInApp(false)
.setAndroidPackageName("com.package.my", true, "1")
.setUrl(BuildConfig.DEEP_LINK)
.build();
尝试发送带有动态 link 附件的帐户验证电子邮件时出错。将 Google 服务更新到版本 14.3.66
后出现- 使用电子邮件和密码在 firebase 身份验证中注册:
firebaseAuth.createUserWithEmailAndPassword(login, pass)
- 为深度 link: 的 firebase 用户发送电子邮件验证
val settings = ActionCodeSettings.newBuilder()
.setHandleCodeInApp(false)
.setUrl(BuildConfig.DEEP_LINK)
.build()
user.sendEmailVerification(settings)
- 在 addOnFailureListener 中捕获错误消息:
An internal error has occurred. [ MISSING_ANDROID_PACKAGE_NAME:Cannot install Android app without providing package name ]
您需要在代码中设置Android包名:
val settings = ActionCodeSettings.newBuilder()
.setHandleCodeInApp(false)
.setAndroidPackageName("com.package.my", true, "1")
.setUrl(BuildConfig.DEEP_LINK)
.build();