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
8366689e
Commit
8366689e
authored
Oct 09, 2017
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix at: not working under ios
parent
7bc42e65
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
APPNotificationOptions.m
src/ios/APPNotificationOptions.m
+12
-5
No files found.
src/ios/APPNotificationOptions.m
View file @
8366689e
...
...
@@ -353,8 +353,14 @@
*
* @return [ UNTimeIntervalNotificationTrigger* ]
*/
-
(
UN
TimeInterval
NotificationTrigger
*
)
nonRepeatingTrigger
-
(
UNNotificationTrigger
*
)
nonRepeatingTrigger
{
id
timestamp
=
[
self
valueForTriggerOption
:
@"at"
];
if
(
timestamp
)
{
return
[
self
triggerWithDateMatchingComponents
:
NO
];
}
return
[
UNTimeIntervalNotificationTrigger
triggerWithTimeInterval
:[
self
timeInterval
]
repeats
:
NO
];
}
...
...
@@ -369,7 +375,7 @@
id
every
=
[
self
valueForTriggerOption
:
@"every"
];
if
([
every
isKindOfClass
:
NSString
.
class
])
return
[
self
triggerWithDateMatchingComponents
];
return
[
self
triggerWithDateMatchingComponents
:
YES
];
if
([
every
isKindOfClass
:
NSDictionary
.
class
])
return
[
self
triggerWithCustomDateMatchingComponents
];
...
...
@@ -402,7 +408,7 @@
*
* @return [ UNCalendarNotificationTrigger* ]
*/
-
(
UNCalendarNotificationTrigger
*
)
triggerWithDateMatchingComponents
-
(
UNCalendarNotificationTrigger
*
)
triggerWithDateMatchingComponents
:
(
BOOL
)
repeats
{
NSCalendar
*
cal
=
[[
NSCalendar
alloc
]
initWithCalendarIdentifier
:
NSCalendarIdentifierGregorian
];
...
...
@@ -413,7 +419,7 @@
date
.
timeZone
=
[
NSTimeZone
defaultTimeZone
];
return
[
UNCalendarNotificationTrigger
triggerWithDateMatchingComponents
:
date
repeats
:
YES
];
triggerWithDateMatchingComponents
:
date
repeats
:
repeats
];
}
/**
...
...
@@ -456,7 +462,8 @@
region
.
notifyOnEntry
=
[[
self
valueForTriggerOption
:
@"notifyOnEntry"
]
boolValue
];
region
.
notifyOnExit
=
[[
self
valueForTriggerOption
:
@"notifyOnExit"
]
boolValue
];
return
[
UNLocationNotificationTrigger
triggerWithRegion
:
region
repeats
:
YES
];
return
[
UNLocationNotificationTrigger
triggerWithRegion
:
region
repeats
:
YES
];
}
/**
...
...
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