iOS Token-based APNs

Apple has provided a new method (authentication token) for APNs.

Compared to the previous method (provider certificate), the certificate *.p12 expires every year.

Token-based *.p8 never expires.

For clients

The only difference for the client is

  1. Create an authentication token signing key on https://developer.apple.com/
  2. Download the *.p8 and send it to the backend engineer.

For the backend

Many frameworks support *.p8.

For example:

Firebase

Translated by gpt-3.5-turbo