APNSTokenPreparer

For security, APNs requires you to refresh your token regularly. Refresh your token no more than once every 20 minutes and no less than once every 60 minutes. APNs rejects any request whose token contains a timestamp that is more than one hour old. Similarly, APNs reports an error if you recreate your tokens more than once every 20 minutes.

For security, APNs requires you to refresh your token regularly. Refresh your token no more than once every 20 minutes and no less than once every 60 minutes. APNs rejects any request whose token contains a timestamp that is more than one hour old. Similarly, APNs reports an error if you recreate your tokens more than once every 20 minutes.

On your provider server, set up a recurring task to recreate your token with a current timestamp. Encrypt the token again and attach it to subsequent notification requests.

See also
Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

override def prepare(request: Builder): Builder
Definition Classes
def validToken(now: Instant): SignedJWT

Concrete fields

val jwtHeader: JWSHeader
val key: ECPrivateKey
val keyFactory: KeyFactory
val signer: ECDSASigner