Skip to content

Commit 6da0570

Browse files
committed
Fix location authorization on iOS 13 and lower
1 parent 1b046e6 commit 6da0570

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/MapboxNavigation/NavigationMapView+CLLocationManagerDelegate.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import CoreLocation
22

33
extension NavigationMapView: CLLocationManagerDelegate {
4+
5+
public func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {
6+
if !_locationChangesAllowed { return }
7+
authorizationStatus = status
8+
}
49

510
public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
611
// In case if location changes are not allowed - do not update authorization status and

0 commit comments

Comments
 (0)