Firebase Auth: why my android users do not receive verification email?

Viewed 1106

I have got several reports from Android users that they are not receiving the verification email from firebase. I am not sure this is an issue with spam or other filters but I have got no complaints from iOS users, so this is strange and I guess this is an issue with Android only.

Here are my questions:

  • Is there anything I need to do in my client when sending the verification email?
  • Is there a way to see in firebase console if the email is sent or not?

For reference, I am using flutter and I am using email sign-in.

Here is my code

  final newUser = await _auth.createUserWithEmailAndPassword(email: email, password: password);

  try {
    await newUser.user.sendEmailVerification();
  } catch (e) {
    print("An error occured while trying to send email verification");
    print(e.message);
  }

Many thanks!!

2 Answers

Unless there is an outage with Firebase Authentication (which would show up on the status) there is no reason why this code wouldn't send an email without reporting an error.

It is much more likely that the email was sent but not received. The first step I'd take is to check spam filters either in the recipient's mailbox or (if its a company email address) in their infrastructure.

So for sending the verification email you need to use sendEmailVerification() and I don't think there is a way to see whether the verification mail was sent on Firebase console.

Related