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

Only decrease badge number on click

parent a438e655
Loading
Loading
Loading
Loading
+2 −0
Changes for src/ios/APPLocalNotification.m: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -370,8 +370,10 @@

    NSString* event = (timeInterval <= 1 && deviceready) ? @"trigger" : @"click";

    if ([event isEqualToString:@"click"]) {
        [UIApplication sharedApplication]
        .applicationIconBadgeNumber -= 1;
    }

    [self fireEvent:event localNotification:notification];