Skip to content

Commit

Permalink
i have it on good authority that this *should* work to fix the iOS 16…
Browse files Browse the repository at this point in the history
….4 problem. we’ll see…
  • Loading branch information
sobri909 committed Apr 11, 2023
1 parent 0909758 commit ec1dcce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions LocoKit/Base/LocomotionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,9 @@ import CoreLocation
// stop the gimps
stopCoreMotion()

// set the location manager to ask for nothing and ignore everything
locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters
locationManager.distanceFilter = 10
// set the location manager to ask for as little accuracy as possible (without risking suspend)
locationManager.desiredAccuracy = 999
locationManager.distanceFilter = kCLDistanceFilterNone

// no fallback updates while sleeping
stopTheUpdateTimer()
Expand Down Expand Up @@ -613,8 +613,8 @@ import CoreLocation
stopCoreMotion()

// set the location manager to ask for almost nothing and ignore everything
locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters
locationManager.distanceFilter = 10
locationManager.desiredAccuracy = 999
locationManager.distanceFilter = kCLDistanceFilterNone

// make sure the location manager is alive
locationManager.allowsBackgroundLocationUpdates = true
Expand Down

0 comments on commit ec1dcce

Please sign in to comment.