B. Petersen 5 năm trước cách đây
mục cha
commit
bacf1ef5e4
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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 tokenParts = deviceToken.map { data in String(format: "%02.2hhx", data) }
       let token = tokenParts.joined()
       let token = tokenParts.joined()
       print("Device Token: \(token)")
       print("Device Token: \(token)")
+      // TODO: pass token to provider
     }
     }
 
 
     func application(
     func application(
@@ -313,7 +314,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     
     
      func application(
      func application(
         _ application: UIApplication,
         _ application: UIApplication,
-        didReceiveRemoteNotification userInfo: [AnyHashable : Any]) {
+        didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
+        // TODO: got notification from apple, check for new messages
         print("notification", userInfo)
         print("notification", userInfo)
     }
     }