We were using this Cordova Inappbrowser plugin in our Ionic 1 app for more than a year. after updated my IOS 10 the cordova inappbrowser stopped working. We tried to debug but still couldn’t get any resolution. Please find the below code how we use Inappbrowser in our code.
Plugin Name : cordoba-plugin-inappbrowser 1.5.0
There’s an updated version of the plugin that’s been recently released to fix some ios10 issues. Don’t know if it’ll fix your particular challenges as I can’t tell what’s gone wrong for you exactly. It’s worth a try though, I’d have thought.
change < meta > in “index.html”
<meta http-equiv=“Content-Security-Policy” content=“img-src * ‘self’ data:; default-src * ‘self’ gap: wss: ws: ; style-src ‘self’ ‘unsafe-inline’; script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’;”>
it work for me
hi i’ve tried editing the index.html file with gap: but it isn’t working, i’ve also tried reinstalling and updating the inappbrowser plugin but it still doesn’t work properly - ive tried versions 1.4.0 and 1.7.1 (latest version). When i try to open the popup nothing shows until i leave the app or double click the home button and then return to the app. im using ionic version 1.3.14 with cordova 6.2.0 and xcode 8 to build the app.
Did you find an answer? I also hit this issue. window.open working in Safari, so it’s not the normal “block window.open because this isn’t a synch call” logic. I’ve tried all of the following within the app - no error/exception - just ignored:
div class=‘btn’ onclick=‘var x = window.open(“https://www.google.com”, “_blank”); console.log(“x:” + x);’>Open google search/div
div class=‘btn’ onclick=‘var x = window.open(“https://www.google.com”, “_system”); console.log(“x:” + x);’>Open google search/div
div class=‘btn’ onclick=‘var x = window.open(“https://www.google.com”, “_self”); console.log(“x:” + x);’>Open google search/div
div class=‘btn’ onclick=‘var x = cordova.InAppBrowser.open(“https://www.google.com”, “_self”); console.log(“x:” + x);’>Open google search/div
div class=‘btn’ onclick=‘var x = cordova.InAppBrowser.open(“https://www.google.com”, “_blank”); console.log(“x:” + x);’>Open google search/div
div class=‘btn’ onclick=‘var x = cordova.InAppBrowser.open(“https://www.google.com”, “_system”); console.log(“x:” + x);’>Open google search/div