Comments (12)
Actually, both patches are necessary:
This:
- (void)browserExit
{
if (tmpWindow != nil) { [tmpWindow removeFromSuperview]; tmpWindow = nil; }
And this:
[tmpWindow setWindowLevel:UIWindowLevelNormal];
from cordova-plugin-inappbrowser.
I also faced this issue when I am using forked version of this plugin.
I found the reason why the app is not responding to touch events.
In the latest code(master branch at the moment), it creates temp UIWindow for the inappbrowser controller but after the controller closed, it doesn't remove newly created UIWindow from the superview.
So that there is UIWindow remained over the original UIWindow.
I resolved this issue by removing temp UIWindow on 'browerExit' method in CDVInAppBrowser.m
if (tmpWindow != nil) { [tmpWindow removeFromSuperview]; tmpWindow = nil; }
Hope this helps you @datamystic
from cordova-plugin-inappbrowser.
I also faced this issue when I am using forked version of this plugin.
I found the reason why the app is not responding to touch events.
In the latest code(master branch at the moment), it creates temp UIWindow for the inappbrowser controller but after the controller closed, it doesn't remove newly created UIWindow from the superview.
So that there is UIWindow remained over the original UIWindow.
I resolved this issue by removing temp UIWindow on 'browerExit' method in CDVInAppBrowser.m
if (tmpWindow != nil) { [tmpWindow removeFromSuperview]; tmpWindow = nil; }
Hope this helps you @datamystic
That issue matches my symptoms exactly. How do we get a PR done?
from cordova-plugin-inappbrowser.
I also faced this issue when I am using forked version of this plugin.
I found the reason why the app is not responding to touch events.
In the latest code(master branch at the moment), it creates temp UIWindow for the inappbrowser controller but after the controller closed, it doesn't remove newly created UIWindow from the superview.
So that there is UIWindow remained over the original UIWindow.
I resolved this issue by removing temp UIWindow on 'browerExit' method in CDVInAppBrowser.m
if (tmpWindow != nil) { [tmpWindow removeFromSuperview]; tmpWindow = nil; }
Hope this helps you @datamysticThat issue matches my symptoms exactly. How do we get a PR done?
I have tested this change and it works perfectly.
from cordova-plugin-inappbrowser.
Which version of the inappbrowser are you using?
Which cordova version?
Which cordova-ios version?
And/or zip your project (including platform folder) of your broken app, please.
from cordova-plugin-inappbrowser.
Which version of the inappbrowser are you using? 3.0.0
Which cordova version? 8.1.1
Which cordova-ios version? 4.5.5
from cordova-plugin-inappbrowser.
Glad you found the solution @mobilestar2015. Any chance of submitting a pull request so that we can get this issue resolved?
from cordova-plugin-inappbrowser.
Same case here. I used a fork of the plugin and the app suffered from the same behaviour.
A pull request should be awesome!
But datamystic uses the 3.0.0 version and not a fork of the 3.0.1-dev version.
Maybe you could attach a zip file of your project excluding node_modules?
Duplicate of #296 ?
from cordova-plugin-inappbrowser.
@moldstadt I created a PR for this bug fix.
from cordova-plugin-inappbrowser.
I'm having this problem on version 2.0.2, and I applied the following commit fix (not on npm yet) and it works fine: https://github.com/apache/cordova-plugin-inappbrowser/pull/272/files
Does that fix not work for you?
from cordova-plugin-inappbrowser.
Yes, I have same issue here is the detail
inAppBrowser 3.0.0
cordova-ios 4.5.4
cordova-cli 7.1.0
I tried to downgrade to inAppBrowser 1.7.4 the issue still there.
and finally solved it by downgrade to inAppBrowser 1.4.0
from cordova-plugin-inappbrowser.
This bug was caused by PR #284 - prior to this, the window level was set to UIWindowLevelNormal
and it worked fine.
from cordova-plugin-inappbrowser.
Related Issues (20)
- Calling window.print() does not work
- Keychain not work with inappbrowser HOT 1
- Disable close button (Done) for iOS
- InAppBrowser does not open Youtube Links Properly HOT 12
- The preference name "MediaPlaybackRequiresUserAction" has been deprecated. It is recommended to replace this preference with "MediaTypesRequiringUserActionForPlayback."
- When can we expect latest 6.0.0 version release on npm? HOT 1
- The www/inappbrowser.css file should be removed because it was only for the Windows platform HOT 1
- Cannot build iOS Ionic Capacitor project HOT 5
- 6.0.0 Update throws error while archiving iOS project: "'Cordova/CDVWebViewProcessPoolFactory.h' file not found" HOT 1
- "browser.on('loaderror')" does not work properly on iOS.
- executeScript not working in colab HOT 4
- How to build this plugin for node_modules? HOT 2
- Add option to respect/ignore safe area on iOS
- ref.executeScript can't write clipboard HOT 5
- window.open doesnt work inside the opened webview HOT 2
- Warning when submitting to play store - JavaScript Interface Injection HOT 3
- @awesome-cordova-plugins/in-app-browser, this plugin is not sending the device id to azure while login + iOS HOT 3
- Angular 15 webpage not loading correctly in inappbrowser (Android < 11) HOT 1
- Hide Location & toolbar on scroll
- No visible @interface for 'UIApplication' when building an app for iOS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-inappbrowser.