Sebastián Katzer 8 роки тому
батько
коміт
caf387cbfd
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      src/ios/APPLocalNotification.m

+ 3 - 3
src/ios/APPLocalNotification.m

@@ -119,7 +119,7 @@
 //                NSNumber* id = [options objectForKey:@"id"];
 //                UILocalNotification* notification;
 //
-//                notification = [self.app localNotificationWithId:id];
+//                notification = [_app localNotificationWithId:id];
 //
 //                if (!notification)
 //                    continue;
@@ -174,7 +174,7 @@
 {
     [self.commandDelegate runInBackground:^{
         [_center clearAllNotifications];
-        [self.app setApplicationIconBadgeNumber:0];
+        [_app setApplicationIconBadgeNumber:0];
         [self fireEvent:@"clearall"];
         [self execCallback:command];
     }];
@@ -215,7 +215,7 @@
 {
     [self.commandDelegate runInBackground:^{
         [_center cancelAllNotifications];
-        [self.app setApplicationIconBadgeNumber:0];
+        [_app setApplicationIconBadgeNumber:0];
         [self fireEvent:@"cancelall"];
         [self execCallback:command];
     }];