Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to fill destination automatically in default map application in your device
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 180 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    trupti007
    wrote on 3 Mar 2021, 05:39 last edited by
    #1

    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;
        Qt.openUrlExternally(link_ios);
    }
    else{
         Qt.openUrlExternally(link);
    }
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 3 Mar 2021, 21:16 last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      3 Mar 2021, 05:39

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved