I had publish app to appstore.
and it works very well.
but I’m now did some change on code and found out that on IOS13 inappbrowser is not open properly( it close web right after open animation).
I saw inappbrowser release note and upgrade to 4.1.0
it says GH-534 Fix InAppBrowser
not opening on iOS 13
I changed it and open very well!
but the problem is that on web view, I close web by clicking web button which is defined as window.open(app://close)
but it’s not working anymore
web html 's script
function popClose(){
window.open('app://close');
}
on web browser, I clicked button and it goes to popClose.
but it’s not closed on iOS…
it even don’t come to call back of browser.on(‘loadstars’).subscribe() when trigger popClose function
Ionic code is as below.
const browser = this.iab.create(url, '_blank', { location : 'no', toolbar : 'yes', zoom : 'yes' });
browser.on('loadstart').subscribe(
(event) => {
console.log('###### browser start ###### ');
console.log(event);
if(event.url.indexOf("tel")>-1){
console.log("gfogo")
console.log(event.url.split("tel:")[1]);
this.callNumber(event.url.split("tel:")[1]);
}
if(event.url == 'http://app://close' || event.url == 'app://close' || event.url == 'close') {
browser.close();
}
console.log('###### browser end ###### ');
}
);