My task requires of me to ask an account verification inside the App, so I use sendEmailVerification
with ActionCodeSettings
as fallowed:
ActionCodeSettings settings = ActionCodeSettings.newBuilder()
.setAndroidPackageName("***", false, null)
.setHandleCodeInApp(true)
.setUrl(url)
.build();
...
user.sendEmailVerification(settings)...
Then I get the dynamic link:
FirebaseDynamicLinks.getInstance().getDynamicLink(getIntent()).addOnSuccessListener
All works as it should, but when I check if the user is verified:
user.reload().addOnCompleteListener(task -> if (user.isEmailVerified())...)
it returns false
. Am I doing something wrong? Should I somehow set the user as verified manually?