diff --git a/Source/BMSRichPushNotificationOptions.swift b/Source/BMSRichPushNotificationOptions.swift index 4e0f9ec..f5656d4 100644 --- a/Source/BMSRichPushNotificationOptions.swift +++ b/Source/BMSRichPushNotificationOptions.swift @@ -49,7 +49,8 @@ open class BMSPushRichPushNotificationOptions:UNNotificationServiceExtension { try! FileManager.default.moveItem(at: location, to: tmpUrl) // Add the attachment to the notification content - if let attachment = try? UNNotificationAttachment(identifier: "video", url: tmpUrl, options:nil) { + if let attachment = try? UNNotificationAttachment(identifier: "", url: tmpUrl, options:nil) { + bestAttemptContent?.attachments = [attachment] } }