Page 1 of 3
window.open problem
Posted: Tue Oct 04, 2016 12:18 pm
by Istvan
Hi,
I have a page with where i would like a image with tap event (window.open(url, '_blank', 'location=yes')). This is working on desktop test, html version and in the appery tester, but doesnt working well on android / ios device.
I have on this page another image too with tap event ( window.location.href = 'tel:' + localStorage.getItem('phone') ). When i tap this then open the call dialog and under this proces load the url, browser (if i tapped before the "window.open" image)
How can i fix it?
window.open problem
Posted: Tue Oct 04, 2016 12:20 pm
by Elvin Chu
window.open problem
Posted: Tue Oct 04, 2016 12:22 pm
by Istvan
window.open problem
Posted: Tue Oct 04, 2016 12:40 pm
by Elvin Chu
Get an value:
localStorage.getItem('ex1');
Example:
var phone=localStorage.getItem('ex1');
window.location.href='tel:' + phone;
window.open problem
Posted: Tue Oct 04, 2016 12:49 pm
by Istvan
Thanks but the call is working. window.open is the problem.
window.open problem
Posted: Tue Oct 04, 2016 12:51 pm
by Elvin Chu
Just use window.open("LINK"); it work fine for me
window.open problem
Posted: Tue Oct 04, 2016 1:02 pm
by Istvan
window.open(url, '_blank', 'location=yes')
this i mine. (url is variable)
but working after the call event only 
window.open problem
Posted: Tue Oct 04, 2016 1:10 pm
by Serhii Kulibaba
Hello,
Please use inAppBrowser on read mobile devices: https://docs.appery.io/docs/cordova-i...
window.open problem
Posted: Tue Oct 04, 2016 1:27 pm
by Istvan
var ref = cordova.InAppBrowser.open(''+url+'', '_blank', 'location=yes');
window.open = cordova.InAppBrowser.open;
sometihng like this?
window.open problem
Posted: Tue Oct 04, 2016 8:03 pm
by Istvan
var ref = cordova.InAppBrowser.open(''+url+'', '_blank', 'location=yes');
no change
On ios device working if tap anther image (tap event call a number) ... show dialog and load the browser with url. else nothing