Skip to content

Email link sign in button not shown when using custom layout #1885

Closed
@rstjepanj

Description

@rstjepanj

Step 1: Are you in the right place?

I believe so. Also, this problem seems to be a regression as it was already described and resolved in 1658

Step 2: Describe your environment

  • Android device: Pixel_3a_API_30_x86
  • Android OS version: 11
  • Google Play Services version: 19.0.0
  • Firebase/Play Services SDK version: 20.0.0
  • FirebaseUI version: 7.1.1

Step 3: Describe the problem:

When using custom layout and email link sign in the email button is not shown.

Steps to reproduce:

  1. Pull latest version of firebase-ui
  2. Create new firebase project with google sign in provider and email link provider
  3. Download google-services.json and put it in app directory
  4. Run the application and select AuthUI demo with layout radio button set to custom and providers set to Google and Email link
    Screenshot 2020-12-21 at 17 42 32

Observed Results:

The Email sign in button (textView) is not shown
Screenshot 2020-12-21 at 17 43 02

Expected Results:

I expected the email button to be shown

Relevant Code:

No code changes necessary.

Possible fix

Adding a new method setEmailLinkButtonId in AuthMethodPickerLayout and removing the method providerOrEmailLinkProvider as well as the one reference to it.
This is the solution I used to fix it locally so that I can use it on a project.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions