GithubHelp home page GithubHelp logo

With the new ios inappbrowser change for wkwebview support, the main webview content is disabled about cordova-plugin-inappbrowser HOT 4 CLOSED

apache avatar apache commented on July 20, 2024
With the new ios inappbrowser change for wkwebview support, the main webview content is disabled

from cordova-plugin-inappbrowser.

Comments (4)

jonathanli2 avatar jonathanli2 commented on July 20, 2024

I created a simple UIWebView cordova app with just inappbrowser plugin, and it can repeat the same issue.

The project (basictest.zip) is also shared at the folder of
https://sap-my.sharepoint.com/:f:/p/jonathan_li/EmulfDR6x9RBuQdj5u1-NrwBYchculWO6RAfoC_NTM8XLw?e=YzzUkh

The project only has a simple openInappbrowser button, once it is opened, then clicking done button to close the inappbrowser. After the inappbrowser is closed. Clicking on the openInappbrowser button again will do nothing.

This indicates the issue is in the new inappbrowser plugin's implementation.

Jonathan

from cordova-plugin-inappbrowser.

dpa99c avatar dpa99c commented on July 20, 2024

The bug was caused by PR #284 (prior to this, the window level was set to UIWindowLevelNormal and it worked fine). That PR was merged from master into PR #271 (which adds WKWebView support) in order to resolve merge conflicts, so the bug was carried across to the new implementation.

This issue is also covered by #314.

from cordova-plugin-inappbrowser.

jonathanli2 avatar jonathanli2 commented on July 20, 2024

Just found out the issue is caused by the below code in CDVUIInAppbrowser.m
double baseWindowLevel = [UIApplication sharedApplication].keyWindow.windowLevel;
[tmpWindow setWindowLevel:baseWindowLevel+1];

If commenting out the above code, then the function will works as expected. I will submit a pull request to remove the code to set the window level for inappbrowser UIWindow.

Jonathan

from cordova-plugin-inappbrowser.

jonathanli2 avatar jonathanli2 commented on July 20, 2024

Thanks Dpa99c.
Just saw your comment. I will wait for the PR #271 to be merged in the master.

Jonathan

from cordova-plugin-inappbrowser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.