From 55806dfa4211bcc1dcbaebc1b1ea2cb1216ae1e2 Mon Sep 17 00:00:00 2001 From: Matt Hayashida Date: Wed, 3 Apr 2024 14:21:27 -0400 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Remove=20push=20transactio?= =?UTF-8?q?n=20ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/AppcuesKit/Push/ParsedNotification.swift | 2 -- Sources/AppcuesKit/Push/PushMonitor.swift | 1 - Tests/AppcuesKitTests/Push/PushMonitorTests.swift | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Sources/AppcuesKit/Push/ParsedNotification.swift b/Sources/AppcuesKit/Push/ParsedNotification.swift index a2cd68c11..369fc5f9b 100644 --- a/Sources/AppcuesKit/Push/ParsedNotification.swift +++ b/Sources/AppcuesKit/Push/ParsedNotification.swift @@ -15,7 +15,6 @@ internal struct ParsedNotification { let notificationID: String let workflowID: String? let workflowTaskID: String? - let transactionID: String? let deepLinkURL: URL? let experienceID: String? let attachmentURL: URL? @@ -37,7 +36,6 @@ internal struct ParsedNotification { self.workflowID = userInfo["appcues_workflow_id"] as? String self.workflowTaskID = userInfo["appcues_workflow_task_id"] as? String - self.transactionID = userInfo["appcues_transaction_id"] as? String self.deepLinkURL = (userInfo["appcues_deep_link_url"] as? String) .flatMap { URL(string: $0) } self.experienceID = userInfo["appcues_experience_id"] as? String diff --git a/Sources/AppcuesKit/Push/PushMonitor.swift b/Sources/AppcuesKit/Push/PushMonitor.swift index b75159585..80b59eb69 100644 --- a/Sources/AppcuesKit/Push/PushMonitor.swift +++ b/Sources/AppcuesKit/Push/PushMonitor.swift @@ -169,7 +169,6 @@ internal class PushMonitor: PushMonitoring { "notification_id": parsedNotification.notificationID, "workflow_id": parsedNotification.workflowID, "workflow_task_id": parsedNotification.workflowTaskID, - "transaction_id": parsedNotification.transactionID, "device_id": storage.deviceID ].compactMapValues { $0 }, isInternal: true diff --git a/Tests/AppcuesKitTests/Push/PushMonitorTests.swift b/Tests/AppcuesKitTests/Push/PushMonitorTests.swift index 9ebfda958..1d2215cf4 100644 --- a/Tests/AppcuesKitTests/Push/PushMonitorTests.swift +++ b/Tests/AppcuesKitTests/Push/PushMonitorTests.swift @@ -385,8 +385,7 @@ extension Dictionary where Key == AnyHashable, Value == Any { "appcues_user_id": "default-00000", "appcues_notification_id": "DEADBEEF-0000-0000-0000-000000000001", "appcues_workflow_id": "DEADBEEF-0000-0000-0000-000000000002", - "appcues_workflow_task_id": "DEADBEEF-0000-0000-0000-000000000003", - "appcues_transaction_id": "DEADBEEF-0000-0000-0000-000000000004" + "appcues_workflow_task_id": "DEADBEEF-0000-0000-0000-000000000003" ] } }