Page 1 of 1

window.open does not have "Back" or "Close" on iOS. Works fine on android and windows phone.

Posted: Sat Jun 13, 2015 5:01 pm
by Lincoln D

var link = 'www.nytimes.com'
window.open(link, '_blank', '');

On iPhone, above code opens the link but there is no way to go back to the application.

Please advise.


window.open does not have "Back" or "Close" on iOS. Works fine on android and windows phone.

Posted: Sat Jun 13, 2015 7:07 pm
by Evgene Karachevtsev

Hello Lincoln,

You may try to open your link for example in Safari for iOS devices. Hope this link will be useful for you: https://getsatisfaction.com/apperyio/...


window.open does not have "Back" or "Close" on iOS. Works fine on android and windows phone.

Posted: Tue Jun 16, 2015 7:16 pm
by Lincoln D

When I do the following code, I get "Undefined Object" for window.plugin.childBrowser.

Can you help?

try {
var cb = window.plugins.childBrowser;
if(cb !== null) {
cb.showWebPage(url);
} else {
alert("CB is null");
}
} catch (e){
alert(e);
}


window.open does not have "Back" or "Close" on iOS. Works fine on android and windows phone.

Posted: Sat Jun 20, 2015 10:16 pm
by Illya Stepanov

Hi Lincoln -

In new Cordova version 'childBrowser' is deprecated, you can use now InAppBrowser: https://github.com/apache/cordova-plu...