Firebaseui-ios: Infinity activity indicator.

Created on 2 Jun 2017  路  6Comments  路  Source: firebase/FirebaseUI-iOS

Always sent same verification code and infinity activity indicator shown.

screen shot 2017-06-02 at 14 56 40

question

All 6 comments

@Tayphoon can you upload a sample or post code that reproduces this issue?

@morganchen12 @Tayphoon @yramanchuk I have the same issue here. No matter valid/invalid code I enter it's stuck on activity indicator. Here is my code that call this controller:

    //
    FUIAuth *auth = [FUIAuth defaultAuthUI];
    auth.delegate = self;
    //
    FUIPhoneAuth *phoneAuth = [[FUIPhoneAuth alloc] initWithAuthUI:auth];
    [phoneAuth signInWithPresentingViewController:self];

I have set the AppDelegate methods also considering (Start receiving APNs notifications) 2.point on official firebase webpage.
https://firebase.google.com/docs/auth/ios/phone-auth

@Tayphoon @kovalskyy There should be operation timeout and you should receive server error in:
- (void)authUI:(FUIAuth *)authUI didSignInWithUser:(nullable FIRUser *)user error:(nullable NSError *)error
Please wait for timeout (at least 2 min) and provide server error code (see instructions below).

In order to eliminate possible problems:

  1. Remove app from device (we need to clean keychain), clean Xcode build folder
  2. Verify that you enabled push notifications and remote notification in your app
  3. Verify that you uploaded APNS certificate to FirebaseConsole
  4. You can run app only on real device;
  5. Please comment out your app delegate APNS methods. Library swizzles and dynamically adds all needed calls to your code.
  6. Provide here server error: from authUI:didSignInWithUser:error:
    NSError *detailedError = error.userInfo[NSUnderlyingErrorKey];
  7. You can enable more detailed logs and provide them in this thread
  8. [ ] In AppDelegate add #import <GTMSessionFetcher/GTMSessionFetcherLogging.h>
  9. [ ] In application:didFinishLaunchingWithOptions: call [GTMSessionFetcher setLoggingEnabled:YES];
  10. [ ] Reproduce you case
  11. [ ] Download application container from device (in Xcode Window -> Devices -> {YOUR_DEVICE} -> {YOUR_APP} -> Gear Icon -> Download Container)
  12. [ ] Send us all logs from:
    Container.xcappdata -> AppData -> Documents -> GTMHTTPDebugLogs -> {YOUR_APP}
  13. Checkout sample app (in folder samples) and try to reproduce your issue there.

I have resolved issue with this line of code when calling controller.
auth.providers = @[phoneAuth];
When problem occurs once again I will adjust to your solution

I have resolved issue with this line of code when calling controller.

@kovalskyy Nice to hear!
@Tayphoon Can you please confirm that issue was fixed?

@kovalskyy @yramanchuk Yes it's help.

Was this page helpful?
0 / 5 - 0 ratings