Skip to content

Commit 3f044ac

Browse files
committed
Add a timestamp to the receive receipts 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 2a2d695 commit 3f044ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class OSRequestLiveActivityReceiveReceipts: OneSignalRequest, OSLiveActivityRequ
5454
"player_id": subscriptionId,
5555
"device_type": 0,
5656
"live_activity_id": activityId,
57-
"live_activity_type": activityType
57+
"live_activity_type": activityType,
58+
"timestamp": ISO8601DateFormatter().string(from: timestamp)
5859
]
5960
self.method = PUT
6061

0 commit comments

Comments
 (0)