$cordovaGeolocation not working

am doing a simple Google Map Example by Josh Morony using inic and cgCordova. The main map controller is as follows

.controller(‘MapCtrl’, function($scope, $state, $cordovaGeolocation) {
var options = {timeout: 10000, enableHighAccuracy: true};
var latLng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);

    var mapOptions = {
      center: latLng,
      zoom: 15,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    $scope.map = new google.maps.Map(document.getElementById("map"), mapOptions);
  }, function(error){
    console.log("Could not get location");


and debugging it both on the browser and a Samsung phone gives No map.
Apparently it hits the
and skids right on through the end closing bracket…in case you ask

  • the plugin is present
  • it is whitelisted
  • there are no error messages on the console…i.e. it does not even hit the error function

I have followed the blogs on this and cannot understand why it just skips the promise without an error message. Similar blogs give the exact same code yet no map !!!

Any ideas??