【发布时间】:2019-11-09 10:09:43
【问题描述】:
我正在使用 react-native-firebase 5.0 Firebase phoneAuth 在开发版本中运行良好,但是当我登录 apk 时,firebase.auth().signInWithPhoneNumber(phoneNumber) 始终运行 catch 方法。
但它对测试电话号码工作正常
这里是这个模块的代码。
export const signInWithPhone = (phoneNumber) => {
return (dispatch) => {
firebase.auth()
.signInWithPhoneNumber(phoneNumber)
.then((confirmResult) => {
dispatch({
type: 'SIGN_IN_WITH_PHONE',
payload: confirmResult,
phoneNumber
})
})
.catch((error) => {
dispatch({
type: 'INVALID_PHONE_NUMBER',
})
})
}
}
【问题讨论】:
-
是的。号码发送为 +923*********。代码在开发构建时完全运行
标签: android firebase firebase-authentication react-native-firebase