gps update
This commit is contained in:
@ -448,7 +448,7 @@ class DestinationController extends GetxController {
|
|||||||
if (defaultTargetPlatform == TargetPlatform.android) {
|
if (defaultTargetPlatform == TargetPlatform.android) {
|
||||||
locationSettings = AndroidSettings(
|
locationSettings = AndroidSettings(
|
||||||
accuracy: LocationAccuracy.bestForNavigation,
|
accuracy: LocationAccuracy.bestForNavigation,
|
||||||
distanceFilter: 00,
|
distanceFilter: 0,
|
||||||
forceLocationManager: true,
|
forceLocationManager: true,
|
||||||
intervalDuration: const Duration(seconds: 10),
|
intervalDuration: const Duration(seconds: 10),
|
||||||
//(Optional) Set foreground notification config to keep the app alive
|
//(Optional) Set foreground notification config to keep the app alive
|
||||||
@ -464,15 +464,16 @@ class DestinationController extends GetxController {
|
|||||||
locationSettings = AppleSettings(
|
locationSettings = AppleSettings(
|
||||||
accuracy: LocationAccuracy.bestForNavigation,
|
accuracy: LocationAccuracy.bestForNavigation,
|
||||||
activityType: ActivityType.fitness,
|
activityType: ActivityType.fitness,
|
||||||
distanceFilter: 30,
|
distanceFilter: 0,
|
||||||
pauseLocationUpdatesAutomatically: false,
|
pauseLocationUpdatesAutomatically: false,
|
||||||
|
timeLimit: Duration(seconds: 10),
|
||||||
// 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
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
locationSettings = LocationSettings(
|
locationSettings = LocationSettings(
|
||||||
accuracy: LocationAccuracy.high,
|
accuracy: LocationAccuracy.high,
|
||||||
distanceFilter: 30,
|
distanceFilter: 0,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user