Open DaveInAus opened 2 months ago
Potentially this can really only be solved by updating the FirebaseUI Library
In auth/src/main/java/com/firebase/ui/auth/ui/email/EmailLinkFragment.java (https://github.com/firebase/FirebaseUI-Android)
it would be good to add a line to save the email to SharePreferences in
@Override
protected void onSuccess(@NonNull String email) {
Log.w(TAG, "Email for email link sign in sent successfully.");
//*. SAVE email TO SHARED PREFERENCES *//
doAfterTimeout(() -> mTopLevelView.setVisibility(View.VISIBLE));
mEmailSent = true;
}
or alternatively if someone knows how to intercept this email during the passwordless email link flow it would be great to provide an example
Step 3: Describe the problem:
onActivityResult not called when using "sign in with email" i.e. when using an email link to sign-in. The application is supposed to save the users email during this flow and it would seem a result should be returned to the activity so it can be handled.
Steps to reproduce:
startForResult.launch(Intent(context, FirebaseUIActivity::class.java))
AuthUI.IdpConfig.EmailBuilder() .enableEmailLinkSignIn() .setActionCodeSettings(actionCodeSettings) .build(),
Observed Results:
onActivityResult no called
Expected Results:
Relevant Code: