简体   繁体   English

Google Firebase-某些电话上的电话身份验证结果错误

[英]Google Firebase - Phone Authentication results Error on some phones

I'm using Google Firebase for Phone Number Verification in iOS (Swift) App. 我在iOS(Swift)应用中使用Google Firebase进行电话号码验证。 At Every Step I have logged status at my end. 在每一步中,我都已记录完状态。 Same process works for most, but results error on some devices with No possible information on why its doing like this. 大多数情况下都可以执行相同的过程,但是在某些设备上会导致错误,并且没有关于为什么这样做的可能信息。

On Most of the process works Fine . 在大多数的过程中正常工作。 FCM Fake Token for Verification is received -> Firebase results with success. 收到用于验证的FCM假令牌->成功的Firebase结果。 SMS is received & Verified. 短信已收到并已验证。

On Some Phones the process works Wrong . 在某些电话上,该过程工作不正确 FCM Fake Token for Verification is received -> Firebase results with error -> SMS is NOT received. 收到了用于验证的FCM伪造令牌->错误的Firebase结果->未收到SMS。

Error says "There seems to be a problem with your project's Firebase phone number authentication set-up, please make sure to follow the instructions found at https://firebase.google.com/docs/auth/ios/phone-auth " 错误显示“您的项目的Firebase电话号码身份验证设置似乎有问题,请确保遵循https://firebase.google.com/docs/auth/ios/phone-auth上的说明”

Have you tried switching the sim cards? 您是否尝试过切换SIM卡? Just as a debugging step, swap the sim cards between a phone that didn't receive the SMS and one that did. 就像调试步骤一样,在未收到短信的手机和收到短信的手机之间交换SIM卡。 That way, you can tell if the problem is related to your Firebase setup (which I think is unlikely) or the network. 这样,您可以判断问题是否与Firebase设置(我认为不太可能)或网络有关。

I had an issue where I had my number on a marketing opt-out list, which as a side effect caused several of these kinds of verification SMS messages to be blocked as well. 我遇到了一个问题,我将自己的电话号码输入了退出行销名单,这是一个副作用,导致这些验证短信中的几种也被阻止。 That's one example, but there could be other reasons the network is blocking an SMS as well. 这是一个例子,但是网络也可能阻止SMS的其他原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM