GeoLocation.getLocation(5000).then(function (location) {
console.log("location : " + location);
console.log("location : " + JSON.stringify(location));
}).catch(function (fail) {
console.log("getLocation fail " + fail);
});
}
This code is using for getting the current location,But most of the time getting
“getLocation fail Location request timed out”