I am building a JS app using cordova. I want to open google maps application when user clicks on link.
code -
$window.location.href = 'comgooglemaps://maps.google.com/maps?saddr=My+Location&daddr=' + destinationAddress
destination address is address of the place.
Now the above code works fine on ios but google maps doesnt open on android.
From documentation it looks like comgooglemaps
is iOS specific protocol
I have also tried geo urls mentioned in this Android - launch google map via web url as follows
<a href="geo:53,-9?saddr=(53,-9)&daddr=(42,4)">Click here for route maps</a>
It opens google map application but doesnt show the route.
Is there anything that will work on both android and iOS