                 categories.contains($0.content.categoryIdentifier) ? $0.identifier : nil
             })
             
-            completion?()
+            DispatchQueue.main.async { completion?() }
         }
     }
     

                guard let authorizations = authorizations, settings.authorizationStatus == .notDetermined else {
                    // Register category if applicable
                    return self.getNotificationCategories {
                        defer { completion?(settings.authorizationStatus == .authorized) }
                        guard categorySet != $0 else { return }
                        self.setNotificationCategories(categorySet)
                    }

    ///   - complete: The completion block that will return the request with the identifier.
    func get(withIdentifier: String, complete: @escaping (UNNotificationRequest?) -> Void) {
        getPendingNotificationRequests {
            let requests = $0.first { $0.identifier == withIdentifier }
            DispatchQueue.main.async {
                complete(requests)
            }
        }
    }
    
