Increase background geofence interval to 15m

Update BackgroundGeofenceService to register the periodic geofence task with a 15-minute interval instead of 10 seconds. This reduces frequent wakeups and resource usage and better matches typical platform background scheduling constraints.
This commit is contained in:
Achintha Isuru
2026-03-16 02:31:07 -04:00
parent f4c56cf547
commit c0a7ca1329

View File

@@ -161,7 +161,7 @@ class BackgroundGeofenceService {
await _backgroundTaskService.registerPeriodicTask( await _backgroundTaskService.registerPeriodicTask(
uniqueName: taskUniqueName, uniqueName: taskUniqueName,
taskName: taskName, taskName: taskName,
frequency: const Duration(seconds: 10), frequency: const Duration(minutes: 15),
inputData: <String, dynamic>{ inputData: <String, dynamic>{
'targetLat': targetLat, 'targetLat': targetLat,
'targetLng': targetLng, 'targetLng': targetLng,