Registration confirmation email with Firebase

Asked

Viewed 894 times

0

I’m trying to use the method sendEmailVerification() of Firebase after registration of the user through the Login by e-mail. My problem is that I do not have the option to use this method after creating the user in the database through the createUserWithEmailAndPassword.

I’m using version 9.0.2 of Firebase (firebase-auth). I’m trying to call the method sendEmailVerification() as follows:

    FirebaseAuth auth = FirebaseAuth.getInstance();
    FirebaseUser user = auth.getCurrentUser();

    user.sendEmailVerification()

Does anyone know why this is happening to me?

1 answer

0


This happens because the method sendEmailVerificado was added to Firebase only from SDK Version 9.6 of 21 September 2016 and you are using the 9.0.2. For this reason, it is not possible to recognise the method.

For more details, see here the Firebase update notes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.