Navigator.app undefined

I am trying to use:

navigator.app.loadUrl("http://www.google.com", { openExternal:true } ); 

And this does not work for iOS, both on the device and on the simulator. I used the same line of code in a similar project, and I use the same version of the phone call on both (1.5.0). The same code works on android. The device’s standby function also works, so I assume that the phone charge is loading. I do not use the phonegap.js android file, I checked it.

During debugging, I found that navigator.app is an undefined object. Does anyone have an idea of ​​a configuration that I can lose to cause this?

Thank you for your help.

Cheers, Miguel

+6
source share
1 answer

The navigator.app object is only available on Android. Fortunately, in the upcoming release of version 2.3.0 of PhoneGap, you can:

 window.open("http://www.google.com", "_system"); 

do exactly what you want to do.

+13
source

All Articles