Commit 766ec4ce by Sebastián Katzer

Fire clear event also

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