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
0157a9f4
Commit
0157a9f4
authored
May 02, 2015
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'Invalid type in JSON write (__NSDate)' after updating notification
parent
3b159c88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
APPLocalNotificationOptions.m
src/ios/APPLocalNotificationOptions.m
+8
-0
UIApplication+APPLocalNotification.m
src/ios/UIApplication+APPLocalNotification.m
+4
-4
No files found.
src/ios/APPLocalNotificationOptions.m
View file @
0157a9f4
...
...
@@ -186,6 +186,14 @@ NSString* const DEFAULT_SOUND = @"res://platform_default";
*/
-
(
NSDictionary
*
)
userInfo
{
if
([
dict
objectForKey
:
@"updatedAt"
])
{
NSMutableDictionary
*
data
=
[
dict
mutableCopy
];
[
data
removeObjectForKey
:
@"updatedAt"
];
return
data
;
}
return
dict
;
}
...
...
src/ios/UIApplication+APPLocalNotification.m
View file @
0157a9f4
...
...
@@ -224,7 +224,7 @@
for
(
UILocalNotification
*
notification
in
notifications
)
{
[
options
addObject
:
notification
.
userInfo
];
[
options
addObject
:
notification
.
options
.
userInfo
];
}
return
options
;
...
...
@@ -244,7 +244,7 @@
for
(
UILocalNotification
*
notification
in
notifications
)
{
if
(
notification
.
type
==
type
)
{
[
options
addObject
:
notification
.
userInfo
];
[
options
addObject
:
notification
.
options
.
userInfo
];
}
}
...
...
@@ -267,7 +267,7 @@
notification
=
[
self
localNotificationWithId
:
id
];
if
(
notification
)
{
[
options
addObject
:
notification
.
userInfo
];
[
options
addObject
:
notification
.
options
.
userInfo
];
}
}
...
...
@@ -292,7 +292,7 @@
notification
=
[
self
localNotificationWithId
:
id
];
if
(
notification
&&
notification
.
type
==
type
)
{
[
options
addObject
:
notification
.
userInfo
];
[
options
addObject
:
notification
.
options
.
userInfo
];
}
}
...
...
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