When we use the geolocation on android it drains the battery real fast.
And in the android location setting the preview app is marked with “Battery use: High”
The code we are useing is:
var intervalMs = 1000000;var desiredAccuracyInMeters = 1500;
Any tips? =)
This setup gives me 20s interval?
var intervalMs = 2100000;var desiredAccuracyInMeters = 2100000;
This is the method we are using on Android http://developer.android.com/reference/android/location/LocationManager.html#requestLocationUpdates%28long,%20float,%20android.location.Criteria,%20android.app.PendingIntent%29 for continues updates. I can’t see that we do anything special other than that. One option could be to use getLocation using an interval and see if that improves.
Whatever I asign the minimumReportInterval it still returns a new listningn every 20 secounds in android. Is this a bug or is just me?
var minimumReportInterval = 1000, desiredAccuracyInMeters = 10;
Victor: I’ve seen a few similar reports now, so we will investigate.
I am sorry (and happy) to say that I just found some really embarrassing code with my name on it. A fix will come in next version. I promise!