How to get Mobile Location without using geolocation


I am developing a mobile application using ionic …In registration page i am trying to get users current location…How to get users current location??? Is their any way to get location on android and ios mobile without using GeoLocation…I want to get the location of a user by enabling their GPS


That is what GeoLocation is, using the GPS to give a latitude and longitude of the device. There is no other method.



I am facing the same problem. Using cordovaGeolocation plugin I am unable to get user lat long below api level 21 (5.0)


Try increasing the timeout


Getting same error from function(err). Here is my code

.controller('DcompCtrl', function($scope, $stateParams, $cordovaGeolocation, $timeout, ionicMaterialInk, ionicMaterialMotion) {
    // Set Header
   var posOptions = {timeout: 50000, enableHighAccuracy: false};
    .then(function (position) {
      $  = position.coords.latitude
      $scope.long = position.coords.longitude
    }, function(err) {
     alert("error no LatLong")