Skip to content

Commit c15cf3d

Browse files
committed
Merge branch 'Alex-Sessler-ios-overlay-plugins-compatibility'
2 parents f1e3838 + a8a55e8 commit c15cf3d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ios/PrivacyScreenPlugin.m

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ - (void)onAppWillResignActive:(UIApplication *)application
3838
} else {
3939
imageView = [[UIImageView alloc]initWithFrame:[self.viewController.view bounds]];
4040
[imageView setImage:splash];
41-
[self.viewController.view addSubview:imageView];
41+
42+
#ifdef __CORDOVA_4_0_0
43+
[[UIApplication sharedApplication].keyWindow addSubview:imageView];
44+
#else
45+
[self.viewController.view addSubview:imageView];
46+
#endif
4247
}
4348
}
4449

0 commit comments

Comments
 (0)