Created
May 31, 2018 17:25
-
-
Save pgpt10/fff9aec10acace204a5605c75fe6bb30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) | |
{ | |
self.contentHandler = contentHandler | |
bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent) | |
if let bestAttemptContent = bestAttemptContent | |
{ | |
// Modify the notification content here... | |
bestAttemptContent.body = "Address: Sea Shells Apartments, Mumbai" //Here..!!! | |
contentHandler(bestAttemptContent) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment