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
6e2d2df4
Commit
6e2d2df4
authored
Mar 14, 2014
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small code style changes
parent
1baf850e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
APPLocalNotification.m
src/ios/APPLocalNotification.m
+9
-5
No files found.
src/ios/APPLocalNotification.m
View file @
6e2d2df4
...
...
@@ -54,7 +54,8 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";
/**
* Fügt eine neue Notification-Eintrag hinzu.
*
* @param {NSMutableDictionary} options Die Eigenschaften der Notification
* @param {NSMutableDictionary} options
* Die Eigenschaften der Notification
*/
-
(
void
)
add
:(
CDVInvokedUrlCommand
*
)
command
{
...
...
@@ -62,15 +63,17 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";
NSArray
*
arguments
=
[
command
arguments
];
NSMutableDictionary
*
options
=
[
arguments
objectAtIndex
:
0
];
UILocalNotification
*
notification
=
[
self
notificationWithProperties
:
options
];
NSString
*
id
=
[
notification
.
userInfo
objectForKey
:
@"id"
];
NSString
*
json
=
[
notification
.
userInfo
objectForKey
:
@"json"
];
NSDictionary
*
userInfo
=
notification
.
userInfo
;
NSString
*
id
=
[
userInfo
objectForKey
:
@"id"
];
NSString
*
json
=
[
userInfo
objectForKey
:
@"json"
];
[
self
cancelNotificationWithId
:
id
fireEvent
:
NO
];
[
self
archiveNotification
:
notification
];
[
self
fireEvent
:
@"add"
id
:
id
json
:
json
];
[[
UIApplication
sharedApplication
]
scheduleLocalNotification
:
notification
];
[[
UIApplication
sharedApplication
]
scheduleLocalNotification
:
notification
];
}];
}
...
...
@@ -95,7 +98,8 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";
-
(
void
)
cancelAll
:(
CDVInvokedUrlCommand
*
)
command
{
[
self
.
commandDelegate
runInBackground
:
^
{
NSDictionary
*
entries
=
[[
NSUserDefaults
standardUserDefaults
]
dictionaryRepresentation
];
NSDictionary
*
entries
=
[[
NSUserDefaults
standardUserDefaults
]
dictionaryRepresentation
];
for
(
NSString
*
key
in
[
entries
allKeys
])
{
...
...
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