How to automatically set the `timestamp` field for Live Activity updates events?

I know for start events, sending the timestamp isn't required. So that's easy.

However when I'm testing Live Activity using the Apple Push Notification Console. A lot of times I just need to copy/paste the payload and resend it again.

But then the timestamp field needs to get updated each time, because if it's from a time in the past, then it won't trigger.

This requires me to have to use an EPOCH converter to find the right time and then copy/paste it.

Is there a better solution to this? I know I can use curl, but that is not in the scope of my question.

Answered by Engineer in 851327022

The Push Notification Console does not have a facility automate or script the building of the request headers or payloads.

It will create a curl command for you which you can then parametrize, had that been your question.

Accepted Answer

The Push Notification Console does not have a facility automate or script the building of the request headers or payloads.

It will create a curl command for you which you can then parametrize, had that been your question.

How to automatically set the `timestamp` field for Live Activity updates events?
 
 
Q