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/