Fix attempty

This commit is contained in:
2023-08-27 10:32:08 +08:00
parent 7348b4bacc
commit af25fa9a3e
4 changed files with 16 additions and 7 deletions
@@ -17,8 +17,8 @@ class NotificationService: UNNotificationServiceExtension {
/* DEBUGGING: Uncomment the 2 lines below to check this extension is executing
Note, this extension only runs when mutable-content is set
Setting an attachment or action buttons automatically adds this */
// print("Running NotificationServiceExtension")
// bestAttemptContent.body = "[Modified] " + bestAttemptContent.body
print("Running NotificationServiceExtension")
bestAttemptContent.body = "[Modified] " + bestAttemptContent.body
OneSignalExtension.didReceiveNotificationExtensionRequest(self.receivedRequest, with: bestAttemptContent, withContentHandler: self.contentHandler)
}