Skip to content

Commit d35b9e6

Browse files
committed
Add a timestamp to the click event request
* Since we cache and retry this request, let's add a timestamp for the original event. This value may or may not be used by the backend, but we can see if there are indeed often delays.
1 parent ef32d54 commit d35b9e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iOS_SDK/OneSignalSDK/OneSignalLiveActivities/Source/Requests/OSRequestLiveActivityClicked.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ class OSRequestLiveActivityClicked: OneSignalRequest, OSLiveActivityRequest {
5858
"device_type": 0,
5959
"live_activity_id": activityId,
6060
"live_activity_type": activityType,
61-
"click_id": key
61+
"click_id": key,
62+
"timestamp": ISO8601DateFormatter().string(from: timestamp)
6263
]
6364
self.method = POST
6465

0 commit comments

Comments
 (0)