在使用Firebase身份验证的Facebook登录中遇到错误

  mAuth.signInWithCredential(credential)
        .addOnCompleteListener(this) {
            task ->              
            if (task.isSuccessful) {
                // Sign in success,update UI with the signed-in user's information
                Log.d(TAG,"signInWithCredential:success")

            } else {
                // If sign in fails,display a message to the user.
                Log.w(TAG,"signInWithCredential:failure",task.exception)
                Toast.makeText(
                    baseContext,"Authentication failed.",Toast.LENGTH_SHORT
                ).show()
                //updateUI(null)
            }
  1. 如果我使用上述代码通过Firebase登录Facebook,则task.isSuccessful每次都会出错,否则部分将被执行
    谢谢!
l13952781422 回答:在使用Firebase身份验证的Facebook登录中遇到错误

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3161730.html

大家都在问