Commit 524252ae authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

`onclick` instead of `ontrigger` was called on "slow" iOS devices #89

parent 7afcfecf
Loading
Loading
Loading
Loading
+1 −0
Changes for README.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ More informations can be found [here](https://build.phonegap.com/plugins/413).
- [enhancement:] Avoid blocking the main thread (on Android) **(dpogue)**.
- [bugfix:] `onadd` was called each time after a repeating message was triggered (Android)
- [change:] Reset badge with cancelAll.
- [bugfix:] `onclick` instead of `ontrigger` was called on "slow" iOS devices.

#### Version 0.7.1 (31.01.2014)
- [bugfix:] `ongoing` attribute was ignored.
+1 −1
Changes for src/ios/APPLocalNotification.m: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -253,7 +253,7 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";

    NSDate* now                       = [NSDate date];
    NSTimeInterval fireDateDistance   = [now timeIntervalSinceDate:notification.fireDate];
    NSString* event                   = (fireDateDistance < 0.01) ? @"trigger" : @"click";
    NSString* event                   = (fireDateDistance < 0.05) ? @"trigger" : @"click";

    if (autoCancel && !isActive)
    {