Required Reading
Plugin Version
4.19.3
Mobile operating-system(s)
Device Manufacturer(s) and Model(s)
ALL
Device operating-systems(s)
ALL
React Native / Expo version
0.83.0
What do you require assistance about?
Question / Advice Requested
We are building application and want to achieve the absolute best balance between battery optimization (no overnight idle drain) and pinpoint accuracy on-demand.
Based on our recent Android Battery Historian logs, we noticed heavy background drain when tracking aggressively. We are planning to use a hybrid architecture: keeping the app in a low-power state by default, and escalating to high precision.
What is the recommended, industry-standard configuration template to achieve this with the SDK?
[Optional] Plugin Code and/or Config
{
url: "",
autoSync: true,
// Buffering locations to save cellular radio tail-state drain
autoSyncThreshold: 10,
batchSync: true,
// Default low-power background tracking
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_MEDIUM,
distanceFilter: 50,
stopTimeout: 3,
// Background / Foreground state management
stopOnTerminate: false,
startOnBoot: true,
enableHeadless: true,
notification: {
title: "Location sharing active",
text: "Sharing location",
channelName: "Location Tracking",
sticky: true,
priority: BackgroundGeolocation.NOTIFICATION_PRIORITY_LOW
}
}
[Optional] Relevant log output
Required Reading
Plugin Version
4.19.3
Mobile operating-system(s)
Device Manufacturer(s) and Model(s)
ALL
Device operating-systems(s)
ALL
React Native / Expo version
0.83.0
What do you require assistance about?
Question / Advice Requested
We are building application and want to achieve the absolute best balance between battery optimization (no overnight idle drain) and pinpoint accuracy on-demand.
Based on our recent Android Battery Historian logs, we noticed heavy background drain when tracking aggressively. We are planning to use a hybrid architecture: keeping the app in a low-power state by default, and escalating to high precision.
What is the recommended, industry-standard configuration template to achieve this with the SDK?
[Optional] Plugin Code and/or Config
[Optional] Relevant log output