update gps time

This commit is contained in:
Mohamed Nouffer
2023-01-26 11:02:28 +05:30
parent dcf7d4363d
commit ad61ab2b16

View File

@ -453,7 +453,7 @@ class DestinationController extends GetxController {
accuracy: LocationAccuracy.bestForNavigation, accuracy: LocationAccuracy.bestForNavigation,
distanceFilter: 0, distanceFilter: 0,
forceLocationManager: true, forceLocationManager: true,
intervalDuration: const Duration(seconds: 10), intervalDuration: const Duration(seconds: 1),
//(Optional) Set foreground notification config to keep the app alive //(Optional) Set foreground notification config to keep the app alive
//when going to the background //when going to the background
foregroundNotificationConfig: const ForegroundNotificationConfig( foregroundNotificationConfig: const ForegroundNotificationConfig(
@ -467,7 +467,8 @@ class DestinationController extends GetxController {
locationSettings = AppleSettings( locationSettings = AppleSettings(
accuracy: LocationAccuracy.bestForNavigation, accuracy: LocationAccuracy.bestForNavigation,
activityType: ActivityType.fitness, activityType: ActivityType.fitness,
distanceFilter: 20, distanceFilter: 0,
timeLimit: Duration(seconds: 1),
pauseLocationUpdatesAutomatically: false, pauseLocationUpdatesAutomatically: false,
// Only set to true if our app will be started up in the background. // Only set to true if our app will be started up in the background.
showBackgroundLocationIndicator: true showBackgroundLocationIndicator: true