I have an iOS native app that opens and prepopulates the Apple Maps app.
In pre-Cordova 2.9.1 compilation, it’s acheived by:
phoneui.showURL(theurl,'_blank', {});
Now, this opens the URL in an in-app browser which has been redirected to the Google mobile maps website.
I’ve also tried
window.location=theurl;
and
window.open(theurl);
This produces the same thing: Google maps webpage, rather than triggering the Apple Maps app. However, if I type the url into Safari, the Apple Maps app will open!
I think the big issue here is that it’s opening urls in the in-app browser plug-in and not Safari. If I can get an instance of Safari, it will trigger the Apple Maps app.
Any ideas?
-1tc