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:
@@ -161,7 +161,7 @@ class BackgroundGeofenceService {
|
||||
await _backgroundTaskService.registerPeriodicTask(
|
||||
uniqueName: taskUniqueName,
|
||||
taskName: taskName,
|
||||
frequency: const Duration(seconds: 10),
|
||||
frequency: const Duration(minutes: 15),
|
||||
inputData: <String, dynamic>{
|
||||
'targetLat': targetLat,
|
||||
'targetLng': targetLng,
|
||||
|
||||
Reference in New Issue
Block a user