CB-12875: (iOS) Pushes the inappbrowser window to a higher ui level than the existing apps window. (#284)
diff --git a/.gitignore b/.gitignore
index 4474e73..f63dbbf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@
*.log
*.swp
*.user
+*.idea
node_modules
diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m
index 5bdb3e1..fcd8d98 100644
--- a/src/ios/CDVInAppBrowser.m
+++ b/src/ios/CDVInAppBrowser.m
@@ -244,8 +244,9 @@
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];