Is push-to-start token for Live Activity single use?

I'm currently seeing that OS gets a new push-to-start token immediately after receiving the first notification.

Should my server immediately invalidate the push-to-start token upon usage?

Or invalidating the push-to-start token should only be done if my iOS device gets a new one and then I have to send it back to my server.

Answered by Engineer in 845217022

If you are observing the pushToStartTokenUpdates sequence, and receive a new push to start token, you would want to make sure to send it to your server and invalidate the outdated token.

There is no benefit to invalidating the token on the server immediately, and by waiting until you do get a new token (which you have to send to your server anyways) you might avoid edge cases where the actual sequence doesn't match your observations and assumptions.

Accepted Answer

If you are observing the pushToStartTokenUpdates sequence, and receive a new push to start token, you would want to make sure to send it to your server and invalidate the outdated token.

There is no benefit to invalidating the token on the server immediately, and by waiting until you do get a new token (which you have to send to your server anyways) you might avoid edge cases where the actual sequence doesn't match your observations and assumptions.

Is push-to-start token for Live Activity single use?
 
 
Q