From 4520fc2fa6b63d90d0bd5e4ad4ad5b9a6fa6c9d3 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Thu, 10 Sep 2020 23:59:25 -0700 Subject: [PATCH] Fix identifier for agent notification categories. --- SecretAgent/Notifier.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SecretAgent/Notifier.swift b/SecretAgent/Notifier.swift index 4b94ec5..84ef889 100644 --- a/SecretAgent/Notifier.swift +++ b/SecretAgent/Notifier.swift @@ -13,7 +13,7 @@ class Notifier { let updateAction = UNNotificationAction(identifier: Constants.updateActionIdentitifier, title: "Update", options: []) let ignoreAction = UNNotificationAction(identifier: Constants.ignoreActionIdentitifier, title: "Ignore", options: []) let updateCategory = UNNotificationCategory(identifier: Constants.updateCategoryIdentitifier, actions: [updateAction, ignoreAction], intentIdentifiers: [], options: []) - let criticalUpdateCategory = UNNotificationCategory(identifier: Constants.updateCategoryIdentitifier, actions: [updateAction], intentIdentifiers: [], options: []) + let criticalUpdateCategory = UNNotificationCategory(identifier: Constants.criticalUpdateCategoryIdentitifier, actions: [updateAction], intentIdentifiers: [], options: []) UNUserNotificationCenter.current().setNotificationCategories([updateCategory, criticalUpdateCategory]) UNUserNotificationCenter.current().delegate = notificationDelegate }