英文:
Phone authentication firebase fail because the phone number was blocked
问题
昨天,我为我的应用程序进行了一些测试,在尝试验证我的电话号码后,我收到了以下消息:
“由于异常活动,我们已阻止来自此设备的所有请求。”
当我意识到在进行测试时我需要提供一个虚假的号码,我这样做了,但现在当我想要检查我的apk版本时,我无法通过我的手机进行。
我应该如何解除我的号码被阻止的状态?
我尝试从用户中删除了我的电话号码,但什么也没发生。
英文:
Yesterday, I did some tests for my application and after some attempts to verify my phone number, I got the following message:
"We have blocked all requests from this device due to unusual activity".
When I understood that for tests I have to supply a fictitious number, I did this, but now when I want to check my apk version I can't do that with my phone.
How can I unblock my number?
I tried to delete my phone number from users but nothing happened.
答案1
得分: 1
你需要为开发目的将你的电话号码加入白名单。
查看这个使用白名单电话号码进行测试
英文:
You will need to whitelist your phone number for development purpose.
check this Test with whitelisted phone numbers
答案2
得分: 1
不建议多次使用您的实际手机号进行测试,而应该使用添加到您的Firebase控制台的测试手机号码。
按照以下步骤操作:
转到Firebase控制台上的“Authentication”选项卡中的“Sign-In Method”。
然后,
点击“Phone numbers for testing”下拉菜单,添加一个虚假的手机号码和虚假的代码进行测试。
使用此列表中的手机号码将允许进行认证,而不会消耗您的使用配额,并发送实际的短信。
英文:
It's not recommended to use your actual phone number for testing multiple times, rather You should be using a test phone number added to your Firebase console.
Follow this,
Go to Sing-In Method in Authentication tab on Firebase Console.
Then,
Click on the “Phone numbers for testing” drop down and add a fake a phone number with fake code for testing.
Using phone numbers from this list will allow authentication without consuming your usage quota and sending actual SMS.
答案3
得分: 0
One thing I found was that my specific ISP didn't work with OTP Firebase, so checking with different ISPs might be helpful.
英文:
One this I found was my particular ISP didn't work with OTP Firebase so check with different ISPs might be helpful
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论