marinofaggiana 4 年 前
コミット
2d0b138804
1 ファイル変更9 行追加0 行削除
  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
         }
     }