Commit 6693e7c3 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

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

parent 44c82937
Loading
Loading
Loading
Loading
+2 −2
Changes for src/ios/APPLocalNotification.m: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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];
}

/**