-
Hi there! I've a couple of questions. APNs requires to refresh the auth token regularly and their documentation says it reports an error if the tokens are recreated more than once every 20 minutes.
Thanks for creating this! Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Each connection to the APNs server maintains internal state that tracks when its token was generated. It schedules a job to expire the token every 50 minutes. Please see
This is not necessary; token age restrictions are enforced at the level of individual connections rather than applications/sets of credentials. Because there's no need to synchronize tokens across connections, Pushy provides no affordance for doing so. |
Beta Was this translation helpful? Give feedback.
Each connection to the APNs server maintains internal state that tracks when its token was generated. It schedules a job to expire the token every 50 minutes. Please see
TokenAuthenticationApnsClientHandler
for implementation details.This is not necessary; token age restrictions are enforced at the level of individual connections rather than applications/sets of credentials. Because there's no need to synchronize tokens across connections, …