I develop an application that send coordinates to server every 10 minutes. When i start my app battery level drop for 10% per hour. I don't need in best accuracy but i need to send coordinates every 10-15 minutes more safely for battery. That's how i do it in my iOS background service:
if (Ti.App.Properties.getBool("gpsInBackground", true)) { Ti.Geolocation.setAccuracy(Ti.Geolocation.ACCURACY_HIGH); } else { Ti.Geolocation.setAccuracy(Ti.Geolocation.ACCURACY_LOW); } try { Ti.Geolocation.getCurrentPosition(function(e) { sendCoordinateToServer(e); }); } catch(e) { Ti.API.log(e); }But there is no difference between Ti.Geolocation.ACCURACY_HIGH and Ti.Geolocation.ACCURACY_LOW for battery. Independent from this parameter, my battery's level going down for 8-10% per hour.
Is there a way to complete my task more safely for battery?
1 Answer
Accepted Answer
Did you have any luck with decreasing the strain on the battery? I'm having the exact same issue.
Your Answer
Think you can help? Login to answer this question!