Skip to content

Commit 7389afe

Browse files
fix: fix background location updates on iOS (#404)
1 parent 93f921d commit 7389afe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ class GoogleMapsNavigationSessionManager: NSObject {
450450

451451
func allowBackgroundLocationUpdates(allow: Bool) {
452452
LocationManager.shared.allowBackgroundLocationUpdates(allow: allow)
453+
_session?.roadSnappedLocationProvider?.allowsBackgroundLocationUpdates = allow
453454
}
454455

455456
func setSpeedAlertOptions(options: SpeedAlertOptionsDto) throws {

0 commit comments

Comments
 (0)