소스 검색

add todo wrt persisting token

B. Petersen 4 년 전
부모
커밋
747992b8ae
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      deltachat-ios/AppDelegate.swift

+ 3 - 0
deltachat-ios/AppDelegate.swift

@@ -305,6 +305,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         let tokenString = tokenParts.joined()
         print("Device Token: \(tokenString)")
 
+        // TODO: persist token in config
+        // and post token to notification server only on changes
+
         if let url = URL(string: "https://notifications.delta.chat/register?token=\(tokenString)") {
             var request = URLRequest(url: url)
             request.httpMethod = "POST"