Cordova Angularjs ask for GPS
I program an app where I need GPS. If the GPS is off, how can I ask the user to turn on GPS, like google maps? After a while of googleing I found nothing compareable... My other question is, why I get "Use location? - 2", when the GPS is off? I thought, if the GPS is off, $window.navigator.geolocation is false? controller.js if ($window.navigator && $window.navigator.geolocation) { function success(pos) { $rootScope.position = { x: pos.coords.latitude, y: pos.coords.longitude }; } function fail(error) { alert("Use location? - 2"); } $window.navigator.geolocation.getCurrentPosition(success,