-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
I am updating the library from version 8.x.x to version 10.x.x and have encountered the following problem:
In the old implementation, I requested sign-in via email directly, without any intermediate screen for selecting the authentication provider.
This makes sense because my app only uses email authentication, and the intermediate view is pretty confusing for the user.
For version 8, I can do this as follows:
Use the email authentication provider
List<AuthUI.IdpConfig> providers = List.of( new AuthUI.IdpConfig.EmailBuilder() .setAllowNewAccounts(false) .setDefaultEmail(defaultEmail) .setRequireName(false) .build());
Create and launch sign-in intent
Intent signInIntent = AuthUI.getInstance(AuthManager.getSharedInstance().getFirebaseApp()) .createSignInIntentBuilder() .setTheme(R.style.LoginTheme) .setCredentialManagerEnabled(true) .setAvailableProviders(providers) .build(); signInLauncher.launch(signInIntent);
I am trying to do the same for version 10, adding only the email provider, but it is not working. The intermediate view for provider selection is always shown, regardless of the value of the setProviderChoiceAlwaysShown parameter.
Is this the intended behaviour? What is the purpose of setProviderChoiceAlwaysShown?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels