We have a testing scenario where we are not able to get the co-ordinates of the GPS location of LG-E460.
Android version: Jelly Bean.
I have done the following setting.
1. GPS is enable in the mobile.
2. I have executed the following code and it returns the value 0 for all the values.
function PostGPSLocation()
{
var Longt, Lat;
Mobile.SetCurrent("LG-E460");
// Enable GPS
Mobile.Device.GPS.GPSEnabled = true;
// Obtain location data
Longt = Mobile.Device.GPS.Location.Longitude;
Lat = Mobile.Device.GPS.Location.Latitude;
// Output the location data
Log.Message("The device location is:");
Log.Message("Longitude: "+Longt);
Log.Message("Latitude: "+Lat);
Log.Message("Altitude: "+Mobile.Device.GPS.Location.Altitude);
}
The samething in Nexus 5 I am able to see the Coordinates in the object browser just by connecting the device. Androd version is KitKat
In both the above scenarios I have android agent enable.
Please revert back to the issue on priority
Thanks!