trigger events

pull/340/head
Lucas Nogueira 2 years ago
parent cd6bf51e6e
commit 67b9b76e2b
No known key found for this signature in database
GPG Key ID: 7C32FCA95C8C95D7

@ -26,8 +26,8 @@ public class NotificationHandler: NSObject, NotificationHandlerProtocol {
} }
public func willPresent(notification: UNNotification) -> UNNotificationPresentationOptions { public func willPresent(notification: UNNotification) -> UNNotificationPresentationOptions {
// let notificationData = makeNotificationRequestJSObject(notification.request) let notificationData = makeNotificationRequestJSObject(notification.request)
// TODO self.plugin?.trigger("received", data: notificationData) self.plugin?.trigger("notification", data: notificationData)
if let options = notificationsMap[notification.request.identifier] { if let options = notificationsMap[notification.request.identifier] {
let silent = options["silent"] as? Bool ?? false let silent = options["silent"] as? Bool ?? false
@ -65,7 +65,7 @@ public class NotificationHandler: NSObject, NotificationHandlerProtocol {
data["notification"] = makeNotificationRequestJSObject(originalNotificationRequest) data["notification"] = makeNotificationRequestJSObject(originalNotificationRequest)
// TODO self.plugin?.trigger("localNotificationActionPerformed", data: data, retainUntilConsumed: true) self.plugin?.trigger("actionPerformed", data: data)
} }
/** /**

Loading…
Cancel
Save