-
Notifications
You must be signed in to change notification settings - Fork 488
Description
Step 0: Are you in the right place?
Yes.
[REQUIRED] Step 1: Describe your environment
- Xcode version 12.1
- Firebase SDK version: 7.1.0
- Installation method: CocoaPods 1.10.0
- Firebase Component: Auth
[REQUIRED] Step 2: Describe the problem
When using FirebaseUI-Auth for iOS on Mac Catalyst to sign in via Text Message Auth it returns an alert: "Something went wrong. Please try again."
The console prints out an optional statement reading: Token Mismatch. The error does not occur on the iPhone or iPhone simulator.
>>> **Optional("Token mismatch")** 2020-11-24 00:25:51.231263+0200 App[46526:980525] startURLificationForContainer <FUIPrivacyAndTermsOfServiceView: 0x106abd000; baseClass = UITextView; frame = (10 0; 355 100); text = 'By tapping Verify Phone N...'; clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x600000ddfe10>; layer = <CALayer: 0x60000065ff20>; contentOffset: {0, 0}; contentSize: {355, 46}; adjustedContentInset: {0, 0, 0, 0}> (types 2) created operation <DDTextKitOperation: 0x108292e60> 2020-11-24 00:25:51.232836+0200 App[46526:980525] Cancelling operation for container <FUIPrivacyAndTermsOfServiceView: 0x106abd000; baseClass = UITextView; frame = (10 0; 355 100); text = 'By tapping Verify, you ar...'; clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x600000ddfe10>; layer = <CALayer: 0x60000065ff20>; contentOffset: {0, 0}; contentSize: {355, 52}; adjustedContentInset: {0, 0, 0, 0}>. 2020-11-24 00:25:51.232854+0200 App[46526:980525] operation 0x108292e60 2020-11-24 00:25:51.232928+0200 App[46526:980525] startURLificationForContainer <FUIPrivacyAndTermsOfServiceView: 0x106abd000; baseClass = UITextView; frame = (10 0; 355 100); text = 'By tapping Verify, you ar...'; clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x600000ddfe10>; layer = <CALayer: 0x60000065ff20>; contentOffset: {0, 0}; contentSize: {355, 52}; adjustedContentInset: {0, 0, 0, 0}> (types 2) created operation <DDTextKitOperation: 0x1082a1060> 2020-11-24 00:25:51.237299+0200 App[46526:980525] operation 0x108292e60 2020-11-24 00:25:51.237321+0200 App[46526:980525] operation 0x108292e60 is discarded 2020-11-24 00:25:51.237330+0200 App[46526:980525] Calling the completion block for 0x108292e60 2020-11-24 00:25:51.237348+0200 App[46526:980525] dispatchScanQueryCreationWithCompletionBlock of operation <DDTextKitOperation: 0x108292e60> completion block: success: 0 2020-11-24 00:25:51.237413+0200 App[46526:980525] operation 0x108292e60 2020-11-24 00:25:51.237423+0200 App[46526:980525] operation 0x108292e60 2020-11-24 00:25:51.237444+0200 App[46526:980525] operation 0x1082a1060 2020-11-24 00:25:51.237451+0200 App[46526:980525] really creating scan query in operation 0x1082a1060! 2020-11-24 00:25:51.237458+0200 App[46526:980525] operation 0x1082a1060 2020-11-24 00:25:51.237468+0200 App[46526:980525] 0x1082a1060 created scan query 0x6000017e4400 2020-11-24 00:25:51.237475+0200 App[46526:980525] Calling the completion block for 0x1082a1060 2020-11-24 00:25:51.237487+0200 App[46526:980525] dispatchScanQueryCreationWithCompletionBlock of operation <DDTextKitOperation: 0x1082a1060> completion block: success: 1 2020-11-24 00:25:51.237560+0200 App[46526:982252] operation 0x1082a1060 2020-11-24 00:25:51.237942+0200 App[46526:982252] Firing completion block for <DDTextKitOperation: 0x1082a1060> 2020-11-24 00:25:51.238342+0200 App[46526:980525] <DDTextKitOperation: 0x1082a1060> 2020-11-24 00:25:51.238416+0200 App[46526:980525] operation 0x1082a1060 2020-11-24 00:25:51.238429+0200 App[46526:980525] operation 0x1082a1060 2020-11-24 00:25:51.630754+0200 App[46526:980525] Warning: Attempt to present <UINavigationController: 0x106821400> on <UINavigationController: 0x108827c00> which is already presenting <UINavigationController: 0x1068cae00>
Steps to reproduce:
Try typing in a number to MacCatalyst app on FirebaseUI v.9.0.0 (it didn't work on previous releases either) Get Above Error.
Relevant Code:
UIViewController *vc = [[[UIApplication sharedApplication] keyWindow] rootViewController];
FUIAuth *auth = [FUIAuth defaultAuthUI];
auth.TOSURL = [NSURL URLWithString:@"https://app.com/terms"];
auth.privacyPolicyURL = [NSURL URLWithString:@"https://app.com/privacy"];
auth.delegate = [PFFirebaseDelegate sharedInstance];
FUIPhoneAuth *phoneAuth = [[FUIPhoneAuth alloc] initWithAuthUI:auth];
auth.providers = @[phoneAuth];
[phoneAuth signInWithPresentingViewController:vc];