B. Petersen 5 gadi atpakaļ
vecāks
revīzija
bacf1ef5e4
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      deltachat-ios/AppDelegate.swift

+ 3 - 1
deltachat-ios/AppDelegate.swift

@@ -303,6 +303,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
       let tokenParts = deviceToken.map { data in String(format: "%02.2hhx", data) }
       let token = tokenParts.joined()
       print("Device Token: \(token)")
+      // TODO: pass token to provider
     }
 
     func application(
@@ -313,7 +314,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     
      func application(
         _ application: UIApplication,
-        didReceiveRemoteNotification userInfo: [AnyHashable : Any]) {
+        didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
+        // TODO: got notification from apple, check for new messages
         print("notification", userInfo)
     }