|
|
@@ -61,6 +61,9 @@ static char optionsKey;
|
|
|
self.soundName = options.soundName;
|
|
|
}
|
|
|
|
|
|
+#pragma mark -
|
|
|
+#pragma mark Methods
|
|
|
+
|
|
|
/**
|
|
|
* The options provided by the plug-in.
|
|
|
*/
|
|
|
@@ -128,7 +131,7 @@ static char optionsKey;
|
|
|
|
|
|
int timespan = [now timeIntervalSinceDate:fireDate];
|
|
|
|
|
|
- if (self.repeatInterval != NSCalendarUnitEra) {
|
|
|
+ if ([self isRepeating]) {
|
|
|
timespan = timespan % [self repeatIntervalInSeconds];
|
|
|
}
|
|
|
|
|
|
@@ -156,4 +159,12 @@ static char optionsKey;
|
|
|
return isLaterThanOrEqualTo;
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * If it's a repeating notification.
|
|
|
+ */
|
|
|
+- (BOOL) isRepeating
|
|
|
+{
|
|
|
+ return [self.options isRepeating];
|
|
|
+}
|
|
|
+
|
|
|
@end
|