FirebaseAuthEx - Extends FirebaseAuth functionality

syderbit

Member
Licensed User
Longtime User
B4X:
firebaseAuthenticator.createUserWithEmailAndPassword(email, password)
                .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
                    @Override
                    public void onComplete(@NonNull Task<AuthResult> task) {
                        if (!task.isSuccessful()) {

                            if (task.getException() instanceof FirebaseAuthUserCollisionException) {
                                Toast.makeText(SignUpActivity.this, "User with this email already exist.", Toast.LENGTH_SHORT).show();
                            }


                        } else {
                            sendVerificationEmail();
                            startActivity(new Intent(SignUpActivity.this, DetailsCaptureActivity.class));
                        }

                        // ...
                    }
                });

I'm trying to wrap this code but I have not succeeded! but I am still looking for this mistakes :(:(:(:(
 

DonManfred

Expert
Licensed User
Longtime User
where are you adding this code to?
 
Top