pushTokenUpdates
An asynchronous sequence you use to observe changes to the push token of this remote session.
Declaration
@MainActor var pushTokenUpdates: AsyncStream<Data> { get }Mentioned in
Discussion
Monitor this sequence to receive updated push tokens. When the token changes, transmit the new token securely to your server so the server can continue to send update and end push notifications for this session. Invalidate the outdated token promptly so it cannot be reused, and retain the token only as long as needed to deliver session updates.