Skip to content

Commit ad4cdf3

Browse files
committed
Build fix
1 parent 9eb5f93 commit ad4cdf3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayExecutor.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,10 @@ - (void)displayMessageLoadError:(NSError *)error {
363363
return;
364364
}
365365
self.alertWindow = [[UIWindow alloc] initWithWindowScene:foregroundedScene];
366+
#if TARGET_OS_IOS || TARGET_OS_TV
366367
} else {
367368
self.alertWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
369+
#endif
368370
}
369371
UIViewController *alertViewController = [[UIViewController alloc] init];
370372
self.alertWindow.rootViewController = alertViewController;

0 commit comments

Comments
 (0)