Skip to content

[Auth-UI] [v10.0.0-beta02] setProviderChoiceAlwaysShown(false) does not work #2310

@nerocristallo

Description

@nerocristallo

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.

Image

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions