B. Petersen 4 years ago
parent
commit
f4bcb736d2
1 changed files with 2 additions and 1 deletions
  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: