edamov / pushok

PHP client for Apple Push Notification Service (APNs) - Send push notifications to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key)
MIT License
369 stars 119 forks source link

Keeping provider auth token #61

Closed grizzly closed 5 years ago

grizzly commented 5 years ago

Apple says: "Do not generate a new provider authentication token for each push request that you send. After you obtain a token, continue to use it for all your push requests during the token’s period of validity, which is one full hour."

How to get this to work with your library?

edamov commented 5 years ago

You should check token's period of validity by yourself. Library is not provided automatic regenerating the auth token.