diff --git a/src/hooks/useStartBackgroundLocationUpdates.ts b/src/hooks/useStartBackgroundLocationUpdates.ts index 7d2ad209e..6738f7364 100644 --- a/src/hooks/useStartBackgroundLocationUpdates.ts +++ b/src/hooks/useStartBackgroundLocationUpdates.ts @@ -17,10 +17,11 @@ export const useStartBackgroundLocationUpdates = () => { ) { Location.startLocationUpdatesAsync(LOCATION_TASK_NAME, { // NOTE: BestForNavigationにしたら暴走時のCPU使用率が50%ほど低下した - accuracy: Location.Accuracy.Highest, + accuracy: Location.Accuracy.BestForNavigation, // NOTE: マップマッチが勝手に行われると電車での経路と大きく異なることがあるはずなので // OtherNavigationは必須 activityType: Location.ActivityType.OtherNavigation, + distanceInterval: 100, foregroundService: { notificationTitle: translate('bgAlertTitle'), notificationBody: translate('bgAlertContent'),