Receive notifications success
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user