christocracy / cordova-plugin-background-geolocation

Sophisticated, battery-conscious, cross-platform background-geolocation with motion-detection
http://transistorsoft.github.io/cordova-background-geolocation
492 stars 743 forks source link

Config for highest precision and continuously flow of locations. #266

Closed lbhifi closed 6 years ago

lbhifi commented 6 years ago

When battery power efficiency is no issue, and you want max precision and at least 1 location per second continuously, both in foreground and background and preferable also at stationary. (Also it is important to return locations as quickly as possible after stationary). What would be the most optimal configuration?

Is this a good configuration, or could it be fine tuned even more?

var config = { desiredAccuracy: 0, distanceFilter: 0, disableElasticity: true, stationaryRadius: 1, locationAuthorizationRequest: "Always", locationAuthorizationAlert: { titleWhenNotEnabled: "Lokalitetstjenester er ikke aktiveret", titleWhenOff: "Lokalitetstjenester er slået fra", instructions: "Denne app kræver at 'Altid' er valgt i lokalitetstjenester", cancelButton: "Fortryd", settingsButton: "Indtillinger" }, locationUpdateInterval: 900, fastestLocationUpdateInterval: 900, activityRecognitionInterval: 500, heartbeatInterval: 30, preventSuspend: true, foregroundService: true, stopTimeout: 60 }

christocracy commented 6 years ago

You're not at the right repo. See README