From dc5329d15757cca1c327e87a309fddbb58e554ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20Norstr=C3=B6m?= Date: Tue, 21 Aug 2018 10:28:56 +0200 Subject: [PATCH] CB-12875: (iOS) Pushes the inappbrowser window to a higher ui level than the existing apps window. (#284) --- .gitignore | 1 + src/ios/CDVInAppBrowser.m | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4474e73b4..f63dbbf71 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ Thumbs.db *.log *.swp *.user +*.idea node_modules diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m index 5bdb3e1eb..fcd8d984e 100644 --- a/src/ios/CDVInAppBrowser.m +++ b/src/ios/CDVInAppBrowser.m @@ -244,8 +244,9 @@ - (void)show:(CDVInvokedUrlCommand*)command tmpWindow = [[UIWindow alloc] initWithFrame:frame]; } UIViewController *tmpController = [[UIViewController alloc] init]; + double baseWindowLevel = [UIApplication sharedApplication].keyWindow.windowLevel; [tmpWindow setRootViewController:tmpController]; - [tmpWindow setWindowLevel:UIWindowLevelNormal]; + [tmpWindow setWindowLevel:baseWindowLevel+1]; [tmpWindow makeKeyAndVisible]; [tmpController presentViewController:nav animated:YES completion:nil];