Commit 282875db authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Replacing a notification with the same ID may result into canceling both (Fix for #135)

parent 6d717f2b
Loading
Loading
Loading
Loading
+5 −0
Changes for CHANGELOG.md: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
## ChangeLog
#### Version 0.7.4 (not yet released)
- [bugfix:] Platform specific properties were ignored.
- [bugfix:] cancel may throw an error if the OS returns NIL values (iOS).
- [bugfix:] Replacing a notification with the same ID may result into canceling both (iOS).

#### Version 0.7.3 (16.03.2014)
- [bugfix:] cancel callbacks have not been fired after all notifications have been canceled on iOS.
- [change:] The `oncancel` callback will be called at last if `autoCancel` is set to true (iOS).
+3 −0
Changes for src/ios/APPLocalNotification.m: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -106,7 +106,10 @@
        if ([self isNotificationScheduledWithId:id]) {
            UILocalNotification* notification = [self notificationWithId:id];

            dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.3 * NSEC_PER_SEC),
                           dispatch_get_main_queue(), ^{
                [self cancelNotification:notification fireEvent:NO];
            });
        }

        [self scheduleNotificationWithProperties:properties];