B. Petersen 4 år sedan
förälder
incheckning
f4bcb736d2
1 ändrade filer med 2 tillägg och 1 borttagningar
  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 {
             switch settings.authorizationStatus {
             case .authorized, .provisional, .ephemeral:
             case .authorized, .provisional, .ephemeral:
                 DispatchQueue.main.async {
                 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()
                   UIApplication.shared.registerForRemoteNotifications()
                 }
                 }
             case .denied, .notDetermined:
             case .denied, .notDetermined: