Firebase电话身份验证科特林不会发送验证码

时间:2020-08-25 00:57:46

标签: android firebase kotlin

我正在尝试在我的主机中使用Firebase电话身份验证 模拟器的应用程序。我在firebase中设置了一个测试编号,但是每次尝试发送验证码时,都会收到相同的错误:PhoneAuthProvider:Sms自动检索超时。我该如何解决?*

select 
    t.*,
    case greatest(score0, score1, score2)
        when score0 then 0
        when score1 then 1
        when score2 then 2
    end action_value
from (
    select
        user_id,
        time_id,
        max(case when actual_value = 0 then score end) score0,
        max(case when actual_value = 1 then score end) score1,
        max(case when actual_value = 2 then score end) score2
    from mytable
    group by user_id, time_id
) t

1 个答案:

答案 0 :(得分:0)

据我了解,如果您在Firebase控制台中添加了电话号码作为测试号码,则它将永远不会向其发送SMS,如果这样做,请确保从Firebase控制台的测试号码列表中删除该号码。 >>身份验证>>登录方法>>电话>>用于测试的电话号码,然后尝试向其发送验证短信。

enter image description here