我使用了来自https://rnfirebase.io的react native firebase,但是当我调用firebase.auth()。signInWithPhoneNumber时,验证码已成功接收。但是当我再次调用该功能时,如果我使用设备上的电话号码,则无法收到验证码。但是如果我在其他设备上使用另一个电话号码,则可以接收SMS代码。
我尝试使用https://github.com/invertase/react-native-firebase-starter创建一个新项目,输入SHA1证书的调试版本,但是它没有用。
firebase.auth().signInWithPhoneNumber("+62xxxxxxxx",
true).then(confirmResult => {
alert(JSON.stringify(confirmResult));
}).catch(error => {
alert(JSON.stringify(error));
});
firebase.auth()。signInWithPhoneNumber没有错误,但是我没有收到短信代码。