Skip to content

Commit

Permalink
CB-12875: (iOS) Pushes the inappbrowser window to a higher ui level t…
Browse files Browse the repository at this point in the history
…han the existing apps window. (#284)
  • Loading branch information
maltenorstroem authored and janpio committed Aug 21, 2018
1 parent de86501 commit dc5329d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Thumbs.db
*.log
*.swp
*.user
*.idea

node_modules

Expand Down
3 changes: 2 additions & 1 deletion src/ios/CDVInAppBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit dc5329d

Please sign in to comment.