Commit 524252ae by Sebastián Katzer

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

parent 7afcfecf
......@@ -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.
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment