Alright?
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 application, the sign in works normal but for the second application, when I click register the app never completes the response. The method for sign in is the same 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 an idea of the problem?