From 67b9b76e2b37061c57bbcd15c82096ada3d4a33b Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 1 May 2023 20:43:31 -0300 Subject: [PATCH] trigger events --- plugins/notification/ios/Sources/NotificationHandler.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/notification/ios/Sources/NotificationHandler.swift b/plugins/notification/ios/Sources/NotificationHandler.swift index 5f74a855..1f7cb8ba 100644 --- a/plugins/notification/ios/Sources/NotificationHandler.swift +++ b/plugins/notification/ios/Sources/NotificationHandler.swift @@ -26,8 +26,8 @@ public class NotificationHandler: NSObject, NotificationHandlerProtocol { } public func willPresent(notification: UNNotification) -> UNNotificationPresentationOptions { - // let notificationData = makeNotificationRequestJSObject(notification.request) - // TODO self.plugin?.trigger("received", data: notificationData) + let notificationData = makeNotificationRequestJSObject(notification.request) + self.plugin?.trigger("notification", data: notificationData) if let options = notificationsMap[notification.request.identifier] { let silent = options["silent"] as? Bool ?? false @@ -65,7 +65,7 @@ public class NotificationHandler: NSObject, NotificationHandlerProtocol { data["notification"] = makeNotificationRequestJSObject(originalNotificationRequest) - // TODO self.plugin?.trigger("localNotificationActionPerformed", data: data, retainUntilConsumed: true) + self.plugin?.trigger("actionPerformed", data: data) } /**