ntf: retry to deliver notification with new push client (#437)

* ntf: retry to deliver notification with new push client

* update statuses

* remove token update

* increase tokenTTL
This commit is contained in:
JRoberts
2022-06-28 22:03:06 +04:00
committed by GitHub
parent 85d507d5d3
commit 09b51dc44f
2 changed files with 26 additions and 18 deletions
@@ -205,7 +205,7 @@ apnsProviderHost = \case
defaultAPNSPushClientConfig :: APNSPushClientConfig
defaultAPNSPushClientConfig =
APNSPushClientConfig
{ tokenTTL = 1200, -- 20 minutes
{ tokenTTL = 1800, -- 30 minutes
authKeyFileEnv = "APNS_KEY_FILE", -- the environment variables APNS_KEY_FILE and APNS_KEY_ID must be set, or the server would fail to start
authKeyAlg = "ES256",
authKeyIdEnv = "APNS_KEY_ID",