Receive notifications success

This commit is contained in:
2023-08-27 14:32:20 +08:00
parent af25fa9a3e
commit 0f0d7d0a9d
4 changed files with 36 additions and 9 deletions
@@ -9,6 +9,9 @@ class NotificationService: UNNotificationServiceExtension {
var bestAttemptContent: UNMutableNotificationContent?
override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
print("Running NotificationServiceExtension")
self.receivedRequest = request
self.contentHandler = contentHandler
self.bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)