Created
May 29, 2018 10:53
-
-
Save pgpt10/af332de7ce1b0dc2d34baaba735cde5d to your computer and use it in GitHub Desktop.
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
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) | |
{ | |
switch response.notification.request.content.categoryIdentifier | |
{ | |
case "GENERAL": | |
break | |
case "INVITATION": | |
switch response.actionIdentifier | |
{ | |
case "remindLater": | |
print("remindLater") | |
case "accept": | |
print("accept") | |
default: | |
break | |
} | |
default: | |
break | |
} | |
completionHandler() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment