Firebase registration confirmation Email
I am trying to use sendEmailVerification()
method of Firebase
after user registration through Login by email. My problem is that I don't get 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 am trying to call method sendEmailVerification()
as follows:
FirebaseAuth auth = FirebaseAuth.getInstance();
FirebaseUser user = auth.getCurrentUser();
user.sendEmailVerification()
Does anyone know why this is happening to me?
0
1 answers
This is because the sendEmailVerificado
method was added to Firebase only from the SDK Version 9.6 of September 21, 2016 and you are using 9.0.2
. For this reason, it is not possible to recognized the method.
For more details, see here the Firebase update notes.
0
Author: viana, 2017-10-07 21:26:48