fix ios service
This commit is contained in:
@@ -42,7 +42,7 @@ final class NotificationService: UNNotificationServiceExtension {
|
|||||||
sharedDefaults.setValue(storedMessages + [encodedString], forKey: "messageQueue")
|
sharedDefaults.setValue(storedMessages + [encodedString], forKey: "messageQueue")
|
||||||
|
|
||||||
// Modify the notification content here...
|
// Modify the notification content here...
|
||||||
self.bestAttemptContent?.title = "[modified] \(self?.bestAttemptContent?.title ?? "<NoContent>")"
|
self?.bestAttemptContent?.title = "[modified] \(self?.bestAttemptContent?.title ?? "<NoContent>")"
|
||||||
contentHandler(self?.bestAttemptContent ?? request.content)
|
contentHandler(self?.bestAttemptContent ?? request.content)
|
||||||
}
|
}
|
||||||
Client.shared.disconnect()
|
Client.shared.disconnect()
|
||||||
|
|||||||
Reference in New Issue
Block a user