Open
Description
- Android device: LGE-LM-X430
- Android OS version:10
- Google Play Services version: 1.8.1
- Firebase/Play Services SDK version: 4.3.10
- FirebaseUI version: 33.1.0
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:
- Start a Firebase UI Activity
startForResult.launch(Intent(context, FirebaseUIActivity::class.java))
- Add an Email Provide
AuthUI.IdpConfig.EmailBuilder() .enableEmailLinkSignIn() .setActionCodeSettings(actionCodeSettings) .build(),
- When the user has gone through the flow to save the users email so that it can be used when the user clicks on the link the onActivityResult is not called so that the users email can be saved somewhere
Observed Results:
onActivityResult no called
Expected Results:
- onActivityResult should be called after "Sign-in email sent"
Relevant Code:
ublic class FirebaseUIActivity : AppCompatActivity() {
// [START auth_fui_create_launcher]
// See: https://developer.android.com/training/basics/intents/result
private val signInLauncher = registerForActivityResult(
FirebaseAuthUIActivityResultContract()
) { res ->
var idToken : String? = null
this.onSignInResult(res)
}}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
}