使用Firebase和React Native进行SMS验证
我想在react native中通过firebase进行短信验证 我正在使用react本机firebase库访问firebase SDK 虽然我尝试了他们的内置方法来发送验证代码,但没有成功 我使用的方法:使用Firebase和React Native进行SMS验证,firebase,react-native,firebase-authentication,sms-verification,Firebase,React Native,Firebase Authentication,Sms Verification,我想在react native中通过firebase进行短信验证 我正在使用react本机firebase库访问firebase SDK 虽然我尝试了他们的内置方法来发送验证代码,但没有成功 我使用的方法: firebase.auth().verifyPhoneNumber('+p #') .on('state_changed', (phoneAuthSnapshot) => { console.log(phoneAuthSnap
firebase.auth().verifyPhoneNumber('+p #')
.on('state_changed', (phoneAuthSnapshot) => {
console.log(phoneAuthSnapshot)
})
firebase.auth().signInWithPhoneNumber('+p #')
.then((confirmResult) => {
console.log(confirmResult)
})
.catch((error)=>{
console.log("catch"+error)
})
我试过很多方法。我在Firebase免费计划中,并且已经正确上传了SHA1散列
我犯了一个错误
代码:null
错误:null
状态:“已发送”
验证ID:“AM5PThB_QCB3PDSOESEGY2FKU4KAKG-SOCRF45OZ5ZX5GI8RV3JJM94HSTJVT9XOWM2O9OQLHYBMVT-ajH9PK-MEY2YFIMEJEDOI622WXNJ3PGPx6WNZ_0UBK54D0N9T”
但是代码没有发送到我的巴基斯坦或美国号码。你不应该参加手机认证的付费计划吗?@Lelo还有一个免费配额。看见