Open Native Maps App

Hello, first excuse me for my english!
I have a problem when i want to press a button to open a native maps app. I want to differentiate between iOS and android. This problem is the one thing missing for me to finish the app and I’m desperate. Can someone upload or share a complete example from this?

Thanks!

Have you tried this:

JS:
$scope.openNavigator = function() {
var geoString = ‘’;

if(ionic.Platform.isIOS()) {
geoString = ‘maps://?q=’+$scope.Latitude+’,’+$scope.Longitude+’’;
}
else if(ionic.Platform.isAndroid()) {
geoString = ‘geo://?q=’+$scope.Latitude+’,’+$scope.Longitude+’’;
}
window.open(geoString, ‘_system’);
}

HTML:
ng-click=“openNavigator()”

Thanks to: