Skip to content

Commit aba1fe0

Browse files
authored
Add fallback for iOS 13 when not using scenes (#6169)
1 parent f56576f commit aba1fe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseAppDistribution/Sources/FIRAppDistributionUIService.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ - (void)initializeUIState {
208208
if (foregroundedScene) {
209209
self.window = [[UIWindow alloc] initWithWindowScene:foregroundedScene];
210210
} else {
211-
FIRFADErrorLog(@"No foreground scene found. Cannot display new build alert.");
212-
return;
211+
FIRFADInfoLog(@"No foreground scene found.");
212+
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
213213
}
214214
} else {
215215
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];

0 commit comments

Comments
 (0)