Commit 766ec4ce by Sebastián Katzer

Fire clear event also

parent 7648e407
...@@ -583,6 +583,8 @@ ...@@ -583,6 +583,8 @@
NSString* action = response.actionIdentifier; NSString* action = response.actionIdentifier;
NSString* event = action; NSString* event = action;
completionHandler();
if ([action isEqualToString:UNNotificationDefaultActionIdentifier]) { if ([action isEqualToString:UNNotificationDefaultActionIdentifier]) {
event = @"click"; event = @"click";
} else } else
...@@ -590,9 +592,11 @@ ...@@ -590,9 +592,11 @@
event = @"clear"; event = @"clear";
} }
[self fireEvent:event notification:notification]; if (![event isEqualToString:@"clear"]) {
[self fireEvent:@"clear" notification:notification];
}
completionHandler(); [self fireEvent:event notification:notification];
} }
#pragma mark - #pragma mark -
......
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