Email confirmation of registration with Firebase

0

I am trying to use the sendEmailVerification() method of Firebase after registering the user through Login by email. My problem is that I do not see the option to use this method after creating the user in the database through createUserWithEmailAndPassword .

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

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

    user.sendEmailVerification()

Does anyone know why this is happening to me?

    
asked by anonymous 07.10.2017 / 22:25

1 answer

0

This is because the sendEmailVerificado method was added to Firebase only from the SDK Version 9.6 of September 21, 2016 and you're using 9.0.2 . For this reason, the method can not be recognized.

For more details, see here for the Firebase upgrade notes.

    
07.10.2017 / 23:26