Skip to content

Commit

Permalink
fix(push-notification): map to correct event name (#6)
Browse files Browse the repository at this point in the history
closes Deeplink Handling Fails on Android Due to Incorrect Event Names in Notification Response Listener #5
  • Loading branch information
michaelschoenbaechler committed May 2, 2024
1 parent d0da40d commit 58005c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/com/airship/capacitor/AirshipPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 58005c5

Please sign in to comment.