File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
FirebaseAuth/Sources/AuthProvider/Phone Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -593,6 +593,17 @@ - (void)verifyClientAndSendVerificationCodeToPhoneNumber:(NSString *)phoneNumber
593
593
*/
594
594
- (void )verifyClientWithUIDelegate : (nullable id <FIRAuthUIDelegate>)UIDelegate
595
595
completion : (FIRVerifyClientCallback)completion {
596
+ // Remove the simulator check below after FCM supports APNs in simulators
597
+ #if TARGET_OS_SIMULATOR
598
+ if (@available (iOS 16 , *)) {
599
+ NSDictionary *environment = [[NSProcessInfo processInfo ] environment ];
600
+ if ((environment[@" XCTestConfigurationFilePath" ] == nil )) {
601
+ [self reCAPTCHAFlowWithUIDelegate: UIDelegate completion: completion];
602
+ return ;
603
+ }
604
+ }
605
+ #endif
606
+
596
607
if (_auth.appCredentialManager .credential ) {
597
608
completion (_auth.appCredentialManager .credential , nil , nil );
598
609
return ;
You can’t perform that action at this time.
0 commit comments