Android : Opening google maps app from Angular JS app

on Sunday, September 21, 2014


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=' + source + '&daddr=' + destination;


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


Is there anything that will work on both android and iOS


0 comments:

Post a Comment