marinofaggiana 4 years ago
parent
commit
2d0b138804
1 changed files with 9 additions and 0 deletions
  1. 9 0
      iOSClient/Utility/NCAskAuthorization.swift

+ 9 - 0
iOSClient/Utility/NCAskAuthorization.swift

@@ -107,7 +107,11 @@ class NCAskAuthorization: NSObject {
         case CLAuthorizationStatus.authorizedAlways:
             completion(true)
             break
+        /*
         case CLAuthorizationStatus.authorizedWhenInUse, CLAuthorizationStatus.denied, CLAuthorizationStatus.restricted:
+            DispatchQueue.main.async {
+                NCAutoUpload.shared.startSignificantChangeUpdates()
+            }
             completion(false)
             break
         case CLAuthorizationStatus.notDetermined:
@@ -116,7 +120,12 @@ class NCAskAuthorization: NSObject {
             }
             completion(false)
             break
+        */
         default:
+            DispatchQueue.main.async {
+                NCAutoUpload.shared.startSignificantChangeUpdates()
+            }
+            completion(false)
             break
         }
     }