Skip to content

Instantly share code, notes, and snippets.

@pgpt10
Created May 29, 2018 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgpt10/af332de7ce1b0dc2d34baaba735cde5d to your computer and use it in GitHub Desktop.
Save pgpt10/af332de7ce1b0dc2d34baaba735cde5d to your computer and use it in GitHub Desktop.
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