You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Firebase手机认证收不到SMS验证码,onCodeSent方法未触发求助

Firebase Phone Authentication: onCodeSent() Not Triggering, SMS Not Received for My Number (Works for Others)

I integrated Firebase Phone Authentication into my app, and it worked perfectly until last night. Suddenly, I stopped receiving the SMS verification code—even though the authentication process seems to run smoothly, the text never arrives.

  • I tested with other phone numbers and did receive the SMS, but those aren't my devices so I can't complete the authentication flow.
  • I checked Firebase's official docs and saw the SMS sending limit is 500 messages per IP per hour, but I only tested 34 times in a day—way below the cap.

The critical issue is that my login flow relies entirely on the onCodeSent() method: this method triggers when the verification SMS is sent, which displays a modal for code input. Once the modal is closed, the login completes. Since I'm not receiving the SMS, onCodeSent() never fires, the modal doesn't show up, and the entire login process is stuck.

I'm a new Stack Overflow user—if I posted this question in the wrong place, please let me know where it should go instead.


内容的提问来源于stack exchange,提问作者Hime-sama

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 10:10:47