             guard let link = post.media?.thumbnailLink else { return deferred() }
             let thread = Thread.current
             
-            FileManager.default.download(from: link) {
-                guard $0.2 == nil else {
-                    Log(error: "Could not download the post thumbnail (\(link)): \($0.2.debugDescription).")
-                    return completionHandler(.failed)
+            UNNotificationAttachment.download(from: link) {
+                defer { thread.async { deferred() } }
+                
+                guard $0.isSuccess, let attachment = $0.value else {
+                    return Log(error: "Could not download the post thumbnail (\(link)): \($0.error.debugDescription).")
                 }
                 
-                defer { thread.async { deferred() } }
-                
-                guard $0.2 == nil, let url = $0.0,
-                    let attachment = try? UNNotificationAttachment(identifier: link, url: url)
-                        else { return }
-                        
+                // Store attachment to schedule notification later
                 attachments.append(attachment)
             }
         }

            func deferred() {
                // Launch notification
                UNUserNotificationCenter.current().add(
                    timeInterval: 5,
                    body: !post.excerpt.isEmpty ? post.excerpt : post.content.htmlStripped.htmlDecoded.truncated(300),
                    title: post.title,
                    attachments: attachments,
                    userInfo: [
                        "id": post.id,
                        "link": post.link
                    ],
                    completion: {
                        guard $0 != nil else { return }
                        Log(error: "Could not schedule the notification for the post: \($0.debugDescription).")
                    }
                )
                

        
        UNUserNotificationCenter.current().register(
            delegate: self,
            actions: [UNNotificationAction(identifier: "favorite", title: "Favorite".localized)]
        )
        
        // Initialize Google Analytics
