Qt World Summit: Submit your Presentation

How to fill destination automatically in default map application in your device

  • So currently on my app there is a direction button which redirects to the default map application available on your phone(On android google map and on ios imap). So on android it is working fine it auto fills the destination but on ios the destination is not filling automatically.
    here is my code

    var link= "http://maps.google.com/?&daddr="+my_location;
    if(Qt.platform.os =="ios"){
        var  link_ios="http://maps.apple.com/&daddr="+my_location;

  • Lifetime Qt Champion


    Aren't you missing the "?" for your Apple Maps call ?

Log in to reply