FirebaseUI-iOS icon indicating copy to clipboard operation
FirebaseUI-iOS copied to clipboard

Updating to 5.1.2 breaks phone and Google auth

Open lswang1618 opened this issue 8 years ago • 22 comments

Objective C or Swift: Swift iOS version: 11.4 Firebase SDK version: FirebaseCore 5.0.5 FirebaseUI version: 5.1.2 CocoaPods Version: 1.5.2

Step 3: Describe the problem:

Logging in using FirebaseUI with Google stalls on loading after selecting email without useful console messages. Tapping on Phone from the auth picker screen results in . Downgrading to 5.0.0 resolves both issues.

Steps to reproduce:

  1. Tap Sign in with Google

  2. Tap Continue

  3. Select account

  4. Observe stall via progress circle that never ends (although login and upgrade does seem to complete as observed in Firebase Console)

  5. Tap Sign in with phone

  6. Observe crash

Observed Results:

When logging in with Google, no useful errors, just stalled loading. When trying to log in with Phone, results in this crash: screen shot 2018-07-20 at 12 55 47 am

Expected Results:

  • Successful login with either Google or Phone auth

Relevant Code:

            let authUI = FUIAuth.defaultAuthUI()
            // You need to adopt a FUIAuthDelegate protocol to receive callback
            authUI?.delegate = self
            
            let providers: [FUIAuthProvider] = [
                FUIGoogleAuth(),
                FUIPhoneAuth(authUI:FUIAuth.defaultAuthUI()!),
                ]
            authUI?.providers = providers
            authUI?.shouldAutoUpgradeAnonymousUsers = true
    
            let authViewController = authUI?.authViewController()
            present(authViewController!, animated: true, completion: nil)

lswang1618 avatar Jul 20 '18 05:07 lswang1618

@lswang1618 can you file a new issue for that and we'll take a look? This issue is starting to meander off topic.

morganchen12 avatar Aug 14 '18 02:08 morganchen12

Haha, yes sorry about that :)

lswang1618 avatar Aug 14 '18 13:08 lswang1618