瀏覽代碼

Update AppDelegate.swift

Marino Faggiana 1 年之前
父節點
當前提交
0a8a42aeeb
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      iOSClient/AppDelegate.swift

+ 8 - 0
iOSClient/AppDelegate.swift

@@ -442,6 +442,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     func nextcloudPushNotificationAction(data: [String: AnyObject]) {
         NCApplicationHandle().nextcloudPushNotificationAction(data: data) { detected in
             if !detected {
+
+                let json = "Converted successfully: \(data)"
+                let alertController = UIAlertController(title: "x", message: json, preferredStyle: .alert)
+                alertController.addAction(UIAlertAction(title: NSLocalizedString("_ok_", comment: ""), style: .default, handler: { action in }))
+                self.window?.rootViewController?.present(alertController, animated: true)
+
+                /*
                 let accounts = NCManageDatabase.shared.getAllAccount()
                 for account in accounts {
                     /*
@@ -457,6 +464,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
                     navigationController.modalPresentationStyle = .fullScreen
                     self.window?.rootViewController?.present(navigationController, animated: true)
                 }
+                */
             }
         }
     }