Closed jacobh closed 4 years ago
I've tweaked token signature TTL to 55 minutes to avoid triggering TooManyProviderTokenUpdates errors which I was reliably seeing after about a minute when sending push notifications periodically every 10 seconds as a test.
TooManyProviderTokenUpdates
The Apple docs mention the token should be refreshed at least once every 60 minutes https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html
Oh wow, they tightened the rules. I think the original value was also a typo, it should've been 60 * 45. Thank you for the PR, I'll publish an update.
60 * 45
I've tweaked token signature TTL to 55 minutes to avoid triggering
TooManyProviderTokenUpdates
errors which I was reliably seeing after about a minute when sending push notifications periodically every 10 seconds as a test.The Apple docs mention the token should be refreshed at least once every 60 minutes https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html