Comments (19)
Hi,
I found a solution by myself. Remove "loadStop" event from my codes for solution.
Added this code:
$scope.ref = cordova.InAppBrowser.open(my_url, '_blank', 'clearcache=yes,location=yes,toolbar=no'); var loop = setInterval(function() { $scope.ref.executeScript({ code: "document.getElementById('my_special_markdown').innerText" }, function(values) { var myValue = values[0]; if (myValue) { clearInterval(loop); $scope.ref.close(); $scope.myFunction(myValue); } }); }, 300);
from cordova-plugin-inappbrowser.
InAppBrowser LoadStop event is not triggering in iOS 12 version. Tried different workarounds, but nothing. Loadstop event is not fired, thus the user not able to proceed the application.
Currently using cordova-plugin-inappbrowser 3.0.0.
from cordova-plugin-inappbrowser.
InAppBrowser LoadStop event is not triggering in iOS 12 version. Tried different workarounds, but nothing. Loadstop event is not fired, thus the user not able to proceed the application.
Currently using cordova-plugin-inappbrowser 3.0.0.
use executeScript and setInteraval as advised by gurolayanlar, so you can get a location.href and any necessary data
from cordova-plugin-inappbrowser.
Any update on this? Still see this issue in 3.1.0. I'm able to get the work-around to work, but it's a real hack.
from cordova-plugin-inappbrowser.
The problem is urgent! Now I can not track the success of the payments and close the window as needed
cordova-plugin-inappbrowser 3.0.0, ios 12
from cordova-plugin-inappbrowser.
Hi,
I noticed from iOS 12+ event LoadStop is almost never fired. I mean "almost" cause sometimes the event is fired, and most of times not.
I applied a "hack" (targeted for ios 12 version) to solve the problem adding a timeout on LoadStart event and if after some time the LoadStop event is not fired I excute desired action. Works, but it´s a dirty hack and I don´t plan to keep this hack for too much time.
Does anyone know a oficial fix for this bug?
regards
from cordova-plugin-inappbrowser.
Seems to be working fine for me.
from cordova-plugin-inappbrowser.
I have noticed that sometimes the loadStop and loadStart events are not firing, although it doesn't appear to be deterministic.
from cordova-plugin-inappbrowser.
I have totally the same issue.
from cordova-plugin-inappbrowser.
possible due to content security policy setting?
Try add gap://* at the meta tag for content-security-policy
solution referring from: https://stackoverflow.com/questions/30918553/cordova-deviceready-not-firing-in-ios-until-interacting-with-ios/30918554
from cordova-plugin-inappbrowser.
I have same problem, is there solved problem?
from cordova-plugin-inappbrowser.
I have the same problem, have tried both with a Content-Security-Policy meta tag with numerous settings and without one altogether. Have tried settings on config.xml and no luck.
Just does not seem to trigger any inAppBrowser event when using iOS 12, I have no problems with iOS 11.
Looking at CDVInAppBrowser.m the webViewDidFinishLoad() and didFailLoadWithError() are not called (breakpoints not hit).
loadstart is called as shouldStartLoadWithRequest() is called in CDVInaAppBrowser.m
from cordova-plugin-inappbrowser.
Same problem, in my case any of the events are firing on iOS (11.4), in Android there is not such problem
from cordova-plugin-inappbrowser.
Same problem i am facing too, exit method works but loadstop works sometime, some other time it doesn't.
from cordova-plugin-inappbrowser.
I have the same problem on IOS12. Tried different workarounds, but nothing. Loadstop event is not fired, and i cannot determine the result of an authentication page thus making the user proceed to application. Is some fix planned for this ? Using it with Ionic 3. Thanks in advance
from cordova-plugin-inappbrowser.
Also having the same issue. Loadstop works rather erratically.
from cordova-plugin-inappbrowser.
Thanks @gurolayanlar I used a similar solution, but kept the loadstop
event as well, and cleared the interval.
from cordova-plugin-inappbrowser.
@realweb Any chance you can share how you structured that in your code? I'm running into really inconsistent behaviors in iOS 12 as well and not firing the LoadStop seems to be a critical item. Any more specific tips would be appreciated.
from cordova-plugin-inappbrowser.
@xmetalmw thanks for your interesting.
Sharing the coding, since it have a lot of embed method, wont help. But explain a little about it, can help.
Since my last post I made chengas regarding the "timer". Actually I was adding it cause the spinner was eternally there. So I added the timer to execute functions and reload the page.
So, the final work around was like this:
First, I turned of the spinner for inapp browser (iOS onluy option). Cause since the LoadStop event was not fired, the spinner was there eternally and this was one of the reasons apple reject the app during the review process.
Second, I started to use the URL on LoadStart method to do what I need to do using the URL parameter. Actually, for my case, I only need a parameter on the URL so dont make no difference if its on LoadStart or LoadStop.
I don´t know if in your app will be enough to use url from LoadStart and "assume" it was fully loaded.
I hope I could help.
thanks
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 1
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.