I am working in a cordova app with geolocation in html5 for Android devices, all is fine except because the Samsung devices are heating up when the app is getting and sending the geolocation.
Is there a way to control or avoid device warming in geolocation?
This is a part of the code I am using:
function localizame() {
id_watch = navigator.geolocation.watchPosition(coords, errores, {'enableHighAccuracy':true,'timeout':20000,'maximumAge':0});
}
function coords(position) {
lat = position.coords.latitude;
lng = position.coords.longitude;
pres = position.coords.accuracy; // presición
vel = position.coords.speed; //velocidad m/s
vel = parseInt(vel*3.6);
dir = position.coords.heading; // azimuth
if (!pres || pres == 0) pres = 2000;