B. Petersen преди 4 години
родител
ревизия
f4bcb736d2
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      deltachat-ios/AppDelegate.swift

+ 2 - 1
deltachat-ios/AppDelegate.swift

@@ -288,7 +288,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
             switch settings.authorizationStatus {
             case .authorized, .provisional, .ephemeral:
                 DispatchQueue.main.async {
-                  // on success, we get a token at didRegisterForRemoteNotificationsWithDeviceToken
+                  // on success, we get a token at didRegisterForRemoteNotificationsWithDeviceToken;
+                  // on failure, didFailToRegisterForRemoteNotificationsWithError is called
                   UIApplication.shared.registerForRemoteNotifications()
                 }
             case .denied, .notDetermined: