Skip to content

Instantly share code, notes, and snippets.

@kubilayciftci
Created September 5, 2020 15:37
Show Gist options
  • Save kubilayciftci/bbce7036f31b06ef8a9ca1cc261c1b31 to your computer and use it in GitHub Desktop.
Save kubilayciftci/bbce7036f31b06ef8a9ca1cc261c1b31 to your computer and use it in GitHub Desktop.
Task<VerifyCodeResult> task = EmailAuthProvider.requestVerifyCode(emailEditText.getText().toString(), verifyCodeSettings);
task.addOnSuccessListener(TaskExecutors.uiThread(), new OnSuccessListener<VerifyCodeResult>() {
@Override
public void onSuccess(VerifyCodeResult verifyCodeResult) {
Toast.makeText(getApplicationContext(), "Please check your e-mail", Toast.LENGTH_SHORT).show();
}
}).addOnFailureListener(TaskExecutors.uiThread(), new OnFailureListener() {
@Override
public void onFailure(Exception e) {
Toast.makeText(getApplicationContext(), e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment