title: Open Google maps app with directions by coordinates
body: <p>I'm coding an app (both iOS and Android) that should be able to open the Google Maps app on the device and give directions to a target. The target is provided as latitude/longitude coordinates. I have read the official guid how to do this (<a href="https://developers.google.com/maps/documentation/urls/guide" rel="nofollow noreferrer">https://developers.google.com/maps/documentation/urls/guide</a>) but it still doesn't work. </p>
  
  <p>Below is an example of an url that I send from my app. If I paste that same url into a browser on my computer, it works fine, but if I try to open it on my device I get an error message that says "Unsupported link, Google Maps can't open this link".</p>
  
  <p><a href="https://www.google.com/maps/dir/?api=1&amp;destination=50.693907573202%2C10.970328366756" rel="nofollow noreferrer">https://www.google.com/maps/dir/?api=1&amp;destination=50.693907573202%2C10.970328366756</a></p>
  
  <p>What am I doing wrong?</p>
  
  <p><strong>EDIT:</strong> I noticed that it works the second time i send the url, but never the first. In other words: in my app, I touch the "Directions" button and Google Maps is displayed with the error message. I then return to my app and press the "Directions" button again and it works. Why does it not work the first time? Does Google Maps need to be running in the background for it to work? There is <strong>no</strong> mention of this in the docs...</p>