firebase / FirebaseUI-iOS

iOS UI bindings for Firebase.
Apache License 2.0
1.51k stars 474 forks source link

FUIAnonymousAuth - Missing ProgressView causing simultaneous auth attempts #1174

Open cmederos opened 10 months ago

cmederos commented 10 months ago

Step 2: Describe your environment

Swift (called from SwiftUI UIViewControllerRepresentable) iOSVersion 17.0 FirebaseAnonymousAuthUI (13.1.0) FirebaseUI 13.1.0 CocoaPods 1.14.2

Step 3: Describe the problem:

The guest sign in for the anonymous provider in the pre-built UI does not include a progress indication when signing up. For comparison, other providers like email include a progress spinner while firebase is creating the user and signing them in.

Consequently, the app looks like it's hanging until the first response is received by the AuthStateDidChangeListener.

Additionally, the rest of the UI is still enabled while the sign-in is processing. This means that users usually click on the same sign-in button again, causing multiple sign-ins to process at the same time.

Thanks for looking into it!

Steps to reproduce:

  1. include FUIAnonymousAuth() in configured AuthUI provider
  2. sign up using the "Sign in as guest" button in the pre-built UI

Observed Results:

There are no updates to the UI for several seconds. After the duration has passed, an auth state change event is eventually passed and handled by the other parts of my app.

Expected Results:

A progress indicator of some kind should be displayed while the firebase user is being created. The FUIEmailAuth provider includes such a progress indicator for example

cmederos commented 10 months ago

Hi there - any update or acknowledgement of the issue? I'd say it's a pretty major bug for the iOS UI