Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cordova-plugin-local-notifications
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nabil Sadki
cordova-plugin-local-notifications
Commits
01cdc702
Commit
01cdc702
authored
Jun 30, 2017
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use kAPPGeneralCategory instead of a string
parent
d6df078f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
APPNotificationContent.m
src/ios/APPNotificationContent.m
+2
-1
UNUserNotificationCenter+APPLocalNotification.m
src/ios/UNUserNotificationCenter+APPLocalNotification.m
+1
-1
No files found.
src/ios/APPNotificationContent.m
View file @
01cdc702
...
...
@@ -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 -
...
...
src/ios/UNUserNotificationCenter+APPLocalNotification.m
View file @
01cdc702
...
...
@@ -43,7 +43,7 @@ NSString * const kAPPGeneralCategory = @"GENERAL";
UNNotificationCategory
*
category
;
category
=
[
UNNotificationCategory
categoryWithIdentifier
:
@"GENERAL"
categoryWithIdentifier
:
kAPPGeneralCategory
actions
:@[]
intentIdentifiers
:
@[]
options
:
UNNotificationCategoryOptionCustomDismissAction
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment