in Education by
FirebaseAuth.AuthStateListener mAuthListener; private FirebaseAuth mAuth; EditText name, email, password; Button submit; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.signup); mAuth = FirebaseAuth.getInstance(); mAuthListener = new FirebaseAuth.AuthStateListener() { @Override public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { FirebaseUser user = firebaseAuth.getCurrentUser(); if (user != null) { // User is signed in Log.d("########", "onAuthStateChanged:signed_in:" + user.getUid()); } else{ // User is signed out Log.d("########", "onAuthStateChanged:signed_out"); } } }; name = (EditText) findViewById(R.id.input_name); email = (EditText) findViewById(R.id.input_email); password = (EditText) findViewById(R.id.input_password); submit = (Button) findViewById(R.id.btn_signup); submit.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mAuth.createUserWithEmailAndPassword(email.getText().toString(), password.getText().toString()).addOnCompleteListener(SignUp.this, new OnCompleteListener < AuthResult > () { @Override public void onComplete(@NonNull Task < AuthResult > task) { Log.d("###########", "signInWithEmail:onComplete:" + task.isSuccessful()); } }); The Task.isSuccessful() always returns false and I am not able to add any user. I have enabled email authentication on Firebase and am able to add users from the forge itself, i am left with no way to debug and figure out where the issue is. All other settings like adding dependencies and copying the configuration file obtained from Firebase into the app directory have been done. Please help. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
I encountered the same problem, and decided to create a user from the firebase console. Then the error displayed in the image came up. The password is required to be at least 6 characters long. When signing up a new user ensure that the length of password is at least six and it should work.

Related questions

0 votes
    Installed Postgres-XC $>sudo apt-get install postgres-xc then $ postgres -V postgres (PostgreSQL) 9.2. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 14, 2022 in Education by JackTerrance
0 votes
    I write the following code to access the page but this is not working for me if (User.Identity. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    I write the following code to access the page but this is not working for me if (User.Identity. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    Which of the following is the main task accomplished by the user? (a) Compose a document (b) ... Answers, Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    write true or false 1- the user can add and rename columns of a table 2- the hyperlink data type allows ... used to form relationships Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    _________ is a NiFi user who has the permit to add, remove, and modify elements in a NiFi dataflow. (1)DataFlow Manager (2)System User (3)All the options (4)DataFlow Admin...
asked Apr 20, 2021 in Technology by JackTerrance
0 votes
    _________ is a NiFi user who has the permit to add, remove, and modify elements in a NiFi dataflow. (1)DataFlow Manager (2)System User (3)All the options (4)DataFlow Admin...
asked Apr 20, 2021 in Technology by JackTerrance
0 votes
    _________ is a NiFi user who has the permit to add, remove, and modify elements in a NiFi dataflow. (1)DataFlow Manager (2)System User (3)All the options (4)DataFlow Admin...
asked Apr 19, 2021 in Technology by JackTerrance
0 votes
    I created a unique token that is link to a property, when the user goes to the link there is a ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    Which of the following fixed database roles can add or remove user IDs? (a) db_accessadmin (b) ... , Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    Which of the following fixed database roles can add or remove user IDs? (a) db_accessadmin (b) ... , Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    Lifecycle tasks typically have task actions. (1)False (2)True...
asked Mar 9, 2021 by JackTerrance
0 votes
    I want to know in spine how to add and remove active class for div. In the firebug I saw ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Constraint checking can be disabled in existing _______________ and _____________ constraints so that any data you ... Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    Am trying to create a proxy for my hana db which will be called from a lamda function to write to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
...