Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Do
-
None
-
None
-
None
-
Android
Description
Hi Team
I am not able to fetch latitude longitude in android using the below code.
The code is working fine for IOS.
var options =
{ timeout: 3000, enableHighAccuracy: true };
document.addEventListener('deviceready', function () {
navigator.geolocation.getCurrentPosition(onSuccess, onError, options);
});
function onSuccess(position)
{
latvalue = position.coords.latitude;
lngvalue = position.coords.longitude;
timestamp = position.timestamp;
alert(latvalue);
}
function onError(error)
{
alert(error);
}
Please suggest what need to be done.