marinofaggiana 4 년 전
부모
커밋
0798aef106
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      iOSClient/Networking/NCAutoUpload.swift

+ 1 - 1
iOSClient/Networking/NCAutoUpload.swift

@@ -45,9 +45,9 @@ class NCAutoUpload: NSObject, CLLocationManagerDelegate {
             locationManager = CLLocationManager.init()
             locationManager?.delegate = self
             locationManager?.distanceFilter = 100
-            locationManager?.requestAlwaysAuthorization()
         }
         
+        locationManager?.requestAlwaysAuthorization()
         locationManager?.startMonitoringSignificantLocationChanges()
     }