lytics / ios-sdk

MIT License
0 stars 0 forks source link

add timestamp to outbound events #16

Closed markhayden closed 2 years ago

markhayden commented 2 years ago

Since we are queuing events when a device is offline, we also need to ensure the proper timestamp is included with each event vs. assigning it on send. As such let's make sure a _ts key is added to the top level of the outbound event with the timestamp that it was collected. In addition, if the developer explicitly adds _ts to the call that value should override the current timestamp so that they can control the date/time if they so choose.