Browse Source

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
e70c69b325
1 changed files with 4 additions and 0 deletions
  1. 4 0
      iOSClient/AppDelegate.swift

+ 4 - 0
iOSClient/AppDelegate.swift

@@ -208,6 +208,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     // L' applicazione entrerà in attivo (sempre)
     func applicationDidBecomeActive(_ application: UIApplication) {
 
+        NKCommon.shared.writeLog("[INFO] Application did become active")
+
         self.deletePasswordSession = false
 
         if !NCAskAuthorization.shared.isRequesting {
@@ -292,6 +294,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     func applicationDidEnterBackground(_ application: UIApplication) {
         guard !account.isEmpty else { return }
 
+        NKCommon.shared.writeLog("[INFO] Application did enter in background")
+
         // STOP TIMER UPLOAD PROCESS
         networkingProcessUpload?.stopTimer()