Page 1 of 1

window.open safari mobile

Posted: Thu May 30, 2013 6:29 am
by Florian

Hi guys,

i try to open the url (http://www.google.com) in a new window. the url is stored in the localStorage-variable (locUrl).

the following code doesn't work on iphone ios 6.1.3 (mobile safari).

var url = localStorage.getItem('locURL');

if (navigator.app !== undefined) {
navigator.app.loadUrl(url, { openExternal:true } );
} else {
window.open(url, '_system');
}
event.preventDefault();
return false;

nothing happens when i try to load the url in safari on iphone. but it works perfect on firefox.

thanks for your help


window.open safari mobile

Posted: Thu May 30, 2013 6:32 am
by Kateryna Grynko

Hi Florian,

We'll take a look.


window.open safari mobile

Posted: Thu May 30, 2013 8:05 am
by Kateryna Grynko

Are you creating iOS app or web app?


window.open safari mobile

Posted: Thu May 30, 2013 8:11 am
by Florian

Hi Katya,

I need a solution for both. I'm testing it with a web app.

Thanks
Florian


window.open safari mobile

Posted: Thu May 30, 2013 11:04 am
by Kateryna Grynko

This reference will be helpful:
https://getsatisfaction.com/apperyio/...


window.open safari mobile

Posted: Thu May 30, 2013 6:35 pm
by Florian

Childbrowser doesn't fix the Web App. Problem. I also don't know how to implement it.

Thanks a Lot.


window.open safari mobile

Posted: Thu May 30, 2013 6:39 pm
by Maryna Brodina