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
9ac02bdc
Commit
9ac02bdc
authored
Dec 09, 2015
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #731 Prevent crash when user info is nil
parent
38f58ac2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
APPLocalNotification.m
src/ios/APPLocalNotification.m
+1
-1
UILocalNotification+APPLocalNotification.m
src/ios/UILocalNotification+APPLocalNotification.m
+4
-1
No files found.
src/ios/APPLocalNotification.m
View file @
9ac02bdc
...
@@ -571,7 +571,7 @@
...
@@ -571,7 +571,7 @@
{
{
UILocalNotification
*
notification
=
[
localNotification
object
];
UILocalNotification
*
notification
=
[
localNotification
object
];
if
([
notification
wasUpdated
]
)
if
([
notification
userInfo
]
==
NULL
||
[
notification
wasUpdated
]
)
return
;
return
;
NSTimeInterval
timeInterval
=
[
notification
timeIntervalSinceLastTrigger
];
NSTimeInterval
timeInterval
=
[
notification
timeIntervalSinceLastTrigger
];
...
...
src/ios/UILocalNotification+APPLocalNotification.m
View file @
9ac02bdc
...
@@ -168,9 +168,12 @@ NSInteger const APPLocalNotificationTypeTriggered = 2;
...
@@ -168,9 +168,12 @@ NSInteger const APPLocalNotificationTypeTriggered = 2;
[
obj
removeObjectForKey
:
@"updatedAt"
];
[
obj
removeObjectForKey
:
@"updatedAt"
];
if
(
obj
==
NULL
||
obj
.
count
==
0
)
return
json
;
data
=
[
NSJSONSerialization
dataWithJSONObject
:
obj
data
=
[
NSJSONSerialization
dataWithJSONObject
:
obj
options
:
NSJSONWritingPrettyPrinted
options
:
NSJSONWritingPrettyPrinted
error
:
N
il
];
error
:
N
ULL
];
json
=
[[
NSString
alloc
]
initWithData
:
data
json
=
[[
NSString
alloc
]
initWithData
:
data
encoding
:
NSUTF8StringEncoding
];
encoding
:
NSUTF8StringEncoding
];
...
...
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