Created
August 16, 2016 12:50
-
-
Save janodev/bd3a5de0d16fcdd4662d33289c251ea3 to your computer and use it in GitHub Desktop.
Set the category of a local notification
This file contains hidden or 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:(UNNotificationContent) -> Void) | |
{ | |
content = (request.content.mutableCopy() as? UNMutableNotificationContent) | |
content?.categoryIdentifier = "DylanOrDermotCategory" | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment