Commit 6693e7c3 by Sebastián Katzer

The `oncancel` callback will be called at last if `autoCancel` is set to true

parent 44c82937
......@@ -257,12 +257,12 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";
NSTimeInterval fireDateDistance = [now timeIntervalSinceDate:notification.fireDate];
NSString* event = (fireDateDistance < 0.05) ? @"trigger" : @"click";
[self fireEvent:event id:id json:json];
if (autoCancel && !isActive)
{
[self cancelNotificationWithId:id fireEvent:YES];
}
[self fireEvent:event id:id json:json];
}
/**
......
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