0
all right?
I started a project in Firebase and Linkei two related applications in the same project.
I made an equal login/signin system for both. It turns out that for an app, Sign in works normal but for the second app, when I click register the app never completes the response. The method for Sign in is equal in both:
public void bntRegistrarRClick(View v)
{
(firebaseAuth.createUserWithEmailAndPassword(txtEmail.getText().toString(), txtSenha.getText().toString())).
addOnCompleteListener(new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if(task.isSuccessful())
{
Toast.makeText(RegistroActivity.this, "Registrado com Sucesso", Toast.LENGTH_LONG).show();
Intent i = new Intent(RegistroActivity.this, CreateProfileActivity.class);
startActivity(i);
}
else
{
Log.e("ERROR", task.getException().toString());
Toast.makeText(RegistroActivity.this, task.getException().getMessage(), Toast.LENGTH_LONG).show();
}
}
});
}
Does anyone have any idea what the problem is?