marinofaggiana hace 4 años
padre
commit
0798aef106
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()
     }