android - SendVerificationCode 被 firebase 阻止

标签 android firebase

Firebase 电话号码身份验证与 otp 配合使用效果良好。但现在我遇到了 Firebase 异常,但没有得到 otp。

这是异常(exception)-

com.google.firebase.FirebaseException: An internal error has occurred. [ Requests to this API identitytoolkit method google.cloud.identitytoolkit.v1.AuthenticationService.SendVerificationCode are blocked. ]

Unexpected response code 403 for https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?alt=proto&key=AIz--------

最佳答案

403 表示禁止访问

  • 请参阅 Firebase 控制台中的 API 配额,以确保您的 申请未超出请求配额。
  • 确保在应用程序的开发者控制台中启用 API 您正在测试。
  • 确认 SHA key 已正确插入。

对于使用 Firebase 进行短信登录。

Verification code SMS messages: 50 messages/IP address/minute, 500 messages/IP address/hour

Verification requests : 150 requests/IP address/hour

关于android - SendVerificationCode 被 firebase 阻止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54434476/

相关文章:

javascript - 错误: Received unknown parameter: source

java - 如何在 Firebase 中将数据从一个表复制到另一个表?

带有 CSS 的 Android 应用

java - Android 中的 IllegalArgumentException

java - 窗口 View 泄露

javascript - Firebase 函数 onWrite 未被调用

android - 如何突破 API 的使用限制?

android - 异步任务返回空指针

javascript - 如何使用 firebase auth 在 nodejs 的服务器端验证用户电话号码

node.js - 为什么 Eventarc 触发器在 Firebase 中不起作用?