This question is locked. New answers and comments are not allowed.
Hello everyone, i´m having problems using InAppBrowser to open an external page into my app.
My problem is that when i click in the exit button in the window openned by InAppBrowser the page of my app is reloading and gets a blank page, showing nothing. I realize that if I double-click in home button, like if I went to switch app the app, it backs to the correct page of my app but freezes.
I´m using this code:
[code]
function myFunction() {
var location= window.location.href;
iab = window.open('http://apache.org', '_blank', 'location=yes');
iab.addEventListener('exit', function () {
window.location.href=location;
});
};
[/code]
how can i solve this?
Thanks
My problem is that when i click in the exit button in the window openned by InAppBrowser the page of my app is reloading and gets a blank page, showing nothing. I realize that if I double-click in home button, like if I went to switch app the app, it backs to the correct page of my app but freezes.
I´m using this code:
[code]
function myFunction() {
var location= window.location.href;
iab = window.open('http://apache.org', '_blank', 'location=yes');
iab.addEventListener('exit', function () {
window.location.href=location;
});
};
[/code]
how can i solve this?
Thanks