【发布时间】:2018-06-27 04:29:54
【问题描述】:
当我尝试通过电话身份验证注册用户时,出现运行时错误
kotlin.NotImplementedError: An operation is not implemented: not implemented
我的代码是
val phoneAuth: PhoneAuthProvider = PhoneAuthProvider.getInstance()
phoneAuth!!.verifyPhoneNumber(
"+91xxxxxxxxxx", // Phone number to verify
60, // Timeout duration
TimeUnit.SECONDS, // Unit of timeout
this@MainActivity, // Activity (for callback binding)
mCallBacks)
val mCallBacks = object : PhoneAuthProvider.OnVerificationStateChangedCallbacks() {
override fun onVerificationCompleted(p0: PhoneAuthCredential?) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun onVerificationFailed(p0: FirebaseException?) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun onCodeSent(p0: String?, p1: PhoneAuthProvider.ForceResendingToken?) {
super.onCodeSent(p0, p1)
}
}
【问题讨论】:
标签: android firebase kotlin firebase-authentication