Browse Source

fix name

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 1 year ago
parent
commit
5fea2aed60
2 changed files with 5 additions and 5 deletions
  1. 1 1
      ExternalResources/NCApplicationHandle.swift
  2. 4 4
      iOSClient/AppDelegate.swift

+ 1 - 1
ExternalResources/NCApplicationHandle.swift

@@ -31,7 +31,7 @@ class NCApplicationHandle: NSObject {
     let appDelegate = (UIApplication.shared.delegate as? AppDelegate)!
 
     // class: AppDelegate
-    // func nextcloudPushNotificationAction(data: [String: AnyObject])
+    // func nextcloudPushNotificationAction(data: [String: AnyObject], background: Bool)
     func nextcloudPushNotificationAction(data: [String: AnyObject], background: Bool) {
     }
     

+ 4 - 4
iOSClient/AppDelegate.swift

@@ -202,7 +202,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         // Push Notification
         if let pref = UserDefaults.init(suiteName: NCBrandOptions.shared.capabilitiesGroups),
            let data = pref.object(forKey: "NOTIFICATION_DATA") as? [String: AnyObject] {
-            nextcloudPushNotificationAction(data: data, backgound: true)
+            nextcloudPushNotificationAction(data: data, background: true)
             pref.set(nil, forKey: "NOTIFICATION_DATA")
         }
 
@@ -412,7 +412,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         // push notification in foreground
         if let pref = UserDefaults.init(suiteName: NCBrandOptions.shared.capabilitiesGroups),
            let data = pref.object(forKey: "NOTIFICATION_DATA") as? [String: AnyObject] {
-            nextcloudPushNotificationAction(data: data, backgound: false)
+            nextcloudPushNotificationAction(data: data, background: false)
             pref.set(nil, forKey: "NOTIFICATION_DATA")
         }
         completionHandler([.list, .banner, .sound])
@@ -436,8 +436,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         }
     }
 
-    func nextcloudPushNotificationAction(data: [String: AnyObject], backgound: Bool) {
-        NCApplicationHandle().nextcloudPushNotificationAction(data: data, backgroud: backgound)
+    func nextcloudPushNotificationAction(data: [String: AnyObject], background: Bool) {
+        NCApplicationHandle().nextcloudPushNotificationAction(data: data, background: background)
     }
 
     // MARK: - Login & checkErrorNetworking