From 58005c535e34513ee558f8b64a4d7df51ba84cb8 Mon Sep 17 00:00:00 2001 From: michaelschoenbaechler <49410646+michaelschoenbaechler@users.noreply.github.com> Date: Thu, 2 May 2024 22:55:46 +0200 Subject: [PATCH] fix(push-notification): map to correct event name (#6) closes Deeplink Handling Fails on Android Due to Incorrect Event Names in Notification Response Listener #5 --- android/src/main/java/com/airship/capacitor/AirshipPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt b/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt index ae1e5e2..2314e97 100644 --- a/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt +++ b/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt @@ -34,8 +34,8 @@ class AirshipPlugin : Plugin() { companion object { private val EVENT_NAME_MAP = mapOf( - EventType.BACKGROUND_NOTIFICATION_RESPONSE_RECEIVED to "notification_response", - EventType.FOREGROUND_NOTIFICATION_RESPONSE_RECEIVED to "notification_response", + EventType.BACKGROUND_NOTIFICATION_RESPONSE_RECEIVED to "notification_response_received", + EventType.FOREGROUND_NOTIFICATION_RESPONSE_RECEIVED to "notification_response_received", EventType.CHANNEL_CREATED to "channel_created", EventType.DEEP_LINK_RECEIVED to "deep_link_received", EventType.DISPLAY_MESSAGE_CENTER to "display_message_center",