Skip to content

Commit

Permalink
Merge pull request #3847 from TrainLCD/release/canary
Browse files Browse the repository at this point in the history
Release/canary
  • Loading branch information
TinyKitten authored Oct 22, 2024
2 parents 8bbad1c + fb1ff37 commit 74ac06e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/useStartBackgroundLocationUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 74ac06e

Please sign in to comment.