|
@@ -220,9 +220,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
|
|
|
NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterInitializeMain)
|
|
NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterInitializeMain)
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
NCCommunicationCommon.shared.writeLog("Application will enter in foreground")
|
|
NCCommunicationCommon.shared.writeLog("Application will enter in foreground")
|
|
|
|
|
|
|
|
+ // START TIMER UPLOAD PROCESS
|
|
|
|
+ if NCUtility.shared.isSimulator() {
|
|
|
|
+ networkingProcessUpload?.startTimer()
|
|
|
|
+ }
|
|
|
|
+
|
|
// Request Passcode
|
|
// Request Passcode
|
|
passcodeWithAutomaticallyPromptForBiometricValidation(true)
|
|
passcodeWithAutomaticallyPromptForBiometricValidation(true)
|
|
|
|
|
|
@@ -258,6 +263,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
|
|
|
if account == "" { return }
|
|
if account == "" { return }
|
|
|
|
|
|
|
|
+ // STOP TIMER UPLOAD PROCESS
|
|
|
|
+ if NCUtility.shared.isSimulator() {
|
|
|
|
+ networkingProcessUpload?.stopTimer()
|
|
|
|
+ }
|
|
|
|
+
|
|
NCCommunicationCommon.shared.writeLog("Application did enter in background")
|
|
NCCommunicationCommon.shared.writeLog("Application did enter in background")
|
|
|
|
|
|
passcodeWithAutomaticallyPromptForBiometricValidation(false)
|
|
passcodeWithAutomaticallyPromptForBiometricValidation(false)
|