My custom app has a map on one of the pages. If you click on that map (that is showing the location of a patient) it is supposed to open Google Maps app with the direction from wherever you are to that patient location. For this I use :
http://maps.google.com/maps?saddr=patientlocation&daddr=myaddress [where patientlocation and myaddress are long/lat]
On most phones, it works as expected. It opens the app of Google Maps, with the route loaded.
But for a reason I do not know, some phones will try to open Safari and go to Google Maps website, even though my Google Maps app is installed and up to date. It is a problem because the navigation is not as good when you're not in the actual app. I have tried to restart phone, to uninstall/reinstall my app, uninstall/reinstall Google Maps app, but nothing will do..
I have sent that link through email to some phones. If I click on the link from the native iOS email app, it opens Safari and load Google Maps website. If I click on the link from the Gmail app, it opens Google Maps app.
I am a bit lost on how Apple/iOS handles that.
Can someone help? Thank you!