Commit 01cdc702 by Sebastián Katzer

Use kAPPGeneralCategory instead of a string

parent d6df078f
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#import "APPNotificationContent.h" #import "APPNotificationContent.h"
#import "APPNotificationOptions.h" #import "APPNotificationOptions.h"
#import "UNUserNotificationCenter+APPLocalNotification.h"
#import <objc/runtime.h> #import <objc/runtime.h>
@import UserNotifications; @import UserNotifications;
...@@ -65,7 +66,7 @@ static char optionsKey; ...@@ -65,7 +66,7 @@ static char optionsKey;
self.body = options.text; self.body = options.text;
self.sound = options.sound; self.sound = options.sound;
self.badge = options.badge; self.badge = options.badge;
self.categoryIdentifier = @"GENERAL"; self.categoryIdentifier = kAPPGeneralCategory;
} }
#pragma mark - #pragma mark -
......
...@@ -43,7 +43,7 @@ NSString * const kAPPGeneralCategory = @"GENERAL"; ...@@ -43,7 +43,7 @@ NSString * const kAPPGeneralCategory = @"GENERAL";
UNNotificationCategory* category; UNNotificationCategory* category;
category = [UNNotificationCategory category = [UNNotificationCategory
categoryWithIdentifier:@"GENERAL" categoryWithIdentifier:kAPPGeneralCategory
actions:@[] actions:@[]
intentIdentifiers:@[] intentIdentifiers:@[]
options:UNNotificationCategoryOptionCustomDismissAction]; options:UNNotificationCategoryOptionCustomDismissAction];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment