Florian
Posts: 0
Joined: Wed Feb 20, 2013 5:41 pm

window.open safari mobile

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

window.open safari mobile

Hi Florian,

We'll take a look.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

window.open safari mobile

Are you creating iOS app or web app?

Florian
Posts: 0
Joined: Wed Feb 20, 2013 5:41 pm

window.open safari mobile

Hi Katya,

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

Thanks
Florian

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

window.open safari mobile

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

Florian
Posts: 0
Joined: Wed Feb 20, 2013 5:41 pm

window.open safari mobile

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

Thanks a Lot.

Return to “Issues”