Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Magnifying glass is showing bottom layer #451

Open
3 tasks done
DevArenaCN opened this issue Mar 18, 2019 · 3 comments
Open
3 tasks done

iOS Magnifying glass is showing bottom layer #451

DevArenaCN opened this issue Mar 18, 2019 · 3 comments

Comments

@DevArenaCN
Copy link

Bug Report

When long press on the content to trigger the magnifying glass to show content (such as select input, etc.), the content shown is not the webpage from the inappbrowser, but rather the bottom index.html.

Problem

When long press on the content to trigger the magnifying glass to show content (such as select input, etc.), the content shown is not the webpage from the inappbrowser, but rather the bottom index.html.

What is expected to happen?

Showing the content rendered in the inappbrowser

What does actually happen?

Showing the content from the bottom index.html.

Information

My index.html has a static splashscreen, and the index.js triggers a cordova.InAppBrowser.open to open up the url I would use.

Command or Code

Environment, Platform, Device

Environment: iOS
Platform: iOS
Device: iPhone 5 through iPhone Xs

Version information

Checked with two versions of Cordova iOS (4.5.5 and 5.0.0) as well as two versions of inappbrowser (3.0.0 and 3.1.0-dev), the issue still exists.

I understand there're issues for this https://issues.apache.org/jira/browse/CB-12875 and seems like it was marked resolve, but unfortunately I don't think that fix is for this issue, as 3.1.0-dev (current master branch) still have this issue.

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@yjajkiew
Copy link

Hi,
I've got the same problem on one of the app I use with InAppBrowser and I've made an hard-coded fix as follow in src/ios/CDVInAppBrowser.m :

I replaced [tmpWindow setWindowLevel:UIWindowLevelNormal];
by [tmpWindow setWindowLevel:UIWindowLevelNormal + 1];

in the function dispatch_async(dispatch_get_main_queue(), ^{

Not sure if this is a clean fix, that's why I didn't make any PR.

@DevArenaCN
Copy link
Author

@yjajkiew that did the trick for me, thanks!

@timbru31
Copy link
Member

I've searched the git history why the view level was removed again: #336

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants