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 authored and GitHub committed 2022-06-28 22:03:06 +04:00
1 parent 85d507d5d3
commit 09b51dc44f
2 files changed
+26 -18

No files matched your search

@@ -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",