Commit 01cdc702 by Sebastián Katzer

Use kAPPGeneralCategory instead of a string

parent d6df078f
......@@ -23,6 +23,7 @@
#import "APPNotificationContent.h"
#import "APPNotificationOptions.h"
#import "UNUserNotificationCenter+APPLocalNotification.h"
#import <objc/runtime.h>
@import UserNotifications;
......@@ -65,7 +66,7 @@ static char optionsKey;
self.body = options.text;
self.sound = options.sound;
self.badge = options.badge;
self.categoryIdentifier = @"GENERAL";
self.categoryIdentifier = kAPPGeneralCategory;
}
#pragma mark -
......
......@@ -43,7 +43,7 @@ NSString * const kAPPGeneralCategory = @"GENERAL";
UNNotificationCategory* category;
category = [UNNotificationCategory
categoryWithIdentifier:@"GENERAL"
categoryWithIdentifier:kAPPGeneralCategory
actions:@[]
intentIdentifiers:@[]
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