Commit 22ec9056 by Sebastián Katzer

Replace self.center to _center

parent 96a5ed36
......@@ -100,7 +100,7 @@
// NSNumber* id = [options objectForKey:@"id"];
// UNNotificationRequest* notification;
//
// notification = [self.center getNotificationWithId:id];
// notification = [_center getNotificationWithId:id];
//
// if (!notification)
// continue;
......@@ -152,12 +152,12 @@
for (NSNumber* id in command.arguments) {
UNNotificationRequest* notification;
notification = [self.center getNotificationWithId:id];
notification = [_center getNotificationWithId:id];
if (!notification)
continue;
[self.center clearNotification:notification];
[_center clearNotification:notification];
[self fireEvent:@"clear" notification:notification];
}
......@@ -173,7 +173,7 @@
- (void) clearAll:(CDVInvokedUrlCommand*)command
{
[self.commandDelegate runInBackground:^{
[self.center clearAllNotifications];
[_center clearAllNotifications];
[self.app setApplicationIconBadgeNumber:0];
[self fireEvent:@"clearall"];
[self execCallback:command];
......@@ -193,12 +193,12 @@
for (NSNumber* id in command.arguments) {
UNNotificationRequest* notification;
notification = [self.center getNotificationWithId:id];
notification = [_center getNotificationWithId:id];
if (!notification)
continue;
[self.center cancelNotification:notification];
[_center cancelNotification:notification];
[self fireEvent:@"cancel" notification:notification];
}
......@@ -214,7 +214,7 @@
- (void) cancelAll:(CDVInvokedUrlCommand*)command
{
[self.commandDelegate runInBackground:^{
[self.center cancelAllNotifications];
[_center cancelAllNotifications];
[self.app setApplicationIconBadgeNumber:0];
[self fireEvent:@"cancelall"];
[self execCallback:command];
......@@ -321,7 +321,7 @@
byType:(APPNotificationType)type;
{
[self.commandDelegate runInBackground:^{
NSArray* ids = [self.center getNotificationIdsByType:type];
NSArray* ids = [_center getNotificationIdsByType:type];
CDVPluginResult* result;
result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK
......@@ -497,7 +497,7 @@
UNAuthorizationOptions options =
(UNAuthorizationOptionBadge | UNAuthorizationOptionSound | UNAuthorizationOptionAlert);
[self.center requestAuthorizationWithOptions:options completionHandler:^(BOOL granted, NSError* e) {
[_center requestAuthorizationWithOptions:options completionHandler:^(BOOL granted, NSError* e) {
[self check:command];
}];
}
......
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