I want to very simply open a link in the device browser or maps app:
config.xml
<allow-intent href="http://*/*" launch-external="yes"/>
<allow-intent href="https://*/*" launch-external="yes"/>
html
<a id="my-link" href="" class="link external">Get Directions</a>
I build the directions link dynamically and set like this:
$$('#my-link').attr('href', 'https://www.google.com/maps/dir/?api=1&origin='+originlatlng+'&destination='+ destinationlatlng);
This works when testing in desktop browser through phonegap app but not on device…
What am I doing wrong!?