facebook

Genuitec Cordova 2.9.1: Apple Map redirects to Google:CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #347629 Reply

    Unknown Author
    Participant

    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

    #347630 Reply

    Unknown Author
    Participant

    This seems to have fixed it.

    
    phoneui.showURL(theurl,'_system', {});
    
    #347853 Reply

    Hi 1thinchip,

    Thanks for sharing your solution and closing the loop. Good luck with your project.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Genuitec Cordova 2.9.1: Apple Map redirects to Google:CLOSED

You must be logged in to post in the forum log in