你好,我收到这个错误
firebase.auth().signInWithPhoneNumber(phoneNumber)
错误域 = FIRAuthErrorDomain 代码 = 17057 “用户交互仍在进行中,无法呈现另一个视图。” UserInfo={NSLocalizedDescription=用户交互仍在进行中,无法呈现另一个视图。, FIRAuthErrorUserInfoNameKey=ERROR_WEB_CONTEXT_ALREADY_PRESENTED}
在 RNFirebaseAuth.m 中。
这是错误
const confirmResult = await firebase.auth().signInWithPhoneNumber(phoneNumber);
if (confirmResult) {
this.setState({
confirmResult,
message: 'Code has been sent!',
step: 2,
}, this.goToEnterOtpScreen());
}
来自本机模块的非法回调调用。此回调类型仅允许从本机代码进行单次调用。
"react-native-firebase": "^5.5.4",
pod 'Firebase/Core', '~> 6.3.0'
pod 'Firebase/Auth', '~> 6.3.0'
pod 'Firebase/Database', '~> 6.3.0'
pod 'Firebase/Functions', '~> 6.3.0'
pod 'Firebase/DynamicLinks', '~> 6.3.0'
pod 'Firebase/Firestore', '~> 6.3.0'
pod 'Firebase/Messaging', '~> 6.3.0'
pod 'Firebase/RemoteConfig', '~> 6.3.0'
pod 'Firebase/Storage', '~> 6.3.0'
pod 'Firebase/Performance', '~> 6.3.0'