We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1e3838 + a8a55e8 commit c15cf3dCopy full SHA for c15cf3d
src/ios/PrivacyScreenPlugin.m
@@ -38,7 +38,12 @@ - (void)onAppWillResignActive:(UIApplication *)application
38
} else {
39
imageView = [[UIImageView alloc]initWithFrame:[self.viewController.view bounds]];
40
[imageView setImage:splash];
41
- [self.viewController.view addSubview:imageView];
+
42
+ #ifdef __CORDOVA_4_0_0
43
+ [[UIApplication sharedApplication].keyWindow addSubview:imageView];
44
+ #else
45
+ [self.viewController.view addSubview:imageView];
46
+ #endif
47
}
48
49
0 commit comments