As of February 2021, Apple started enforcing additional authentication for all users when signing in to App Store Connect by requiring two-factor authentication.
This extra layer of security for your Apple ID helps ensure you’re the only person who can access your account.
This means we have to use the official App Store Connect API, which does not have the same two-factor authentication requirements. The effect of this change also means we have to use a different form of authentication for setting up push notifications on iOS.
Token-based authentication replaces the old certificate renewal process for push notifications on Apple devices. After this token has been created once, it will never have to be done again for that account.
Generate a Token
To generate a token, you must have an Admin account in App Store Connect.
The steps required to create a token are as follows:
Head on over to the Apple developer portal at https://developer.apple.com
Sign in to the relevant account.
Select ‘Certificate, Identifiers & Profiles’ or navigate directly to https://developer.apple.com/account/resources/certificates/list
Click ‘Keys’ in the left side menu.
Select ‘Create a key’ or click the plus (+) icon next to the title ‘Keys’.
Fill out a name for your key in the ‘Key Name’ field and enable APNs by ticking the respective checkbox.
Click Continue.
Check your new key’s details and then click Register to finalize your new key.
You can now take note of the Key Id and click download to get your APNs token .p8 file. This what you’ll need to submit to our platform.
Upload your Token Information to our Platform
Once you’ve generated your API key, you can download the private half of the key. The private key is available for download a single time. If you did not do this in the previous step, navigate to your Keys list and select your key.
Once you have your Push Notification Key ID and Token:
- Log in to our web platform.
- Navigate to Platform & Billing > Branding Center.
- For your iOS app, submit your Push Notification Key ID and upload your Push Notification Token .p8 file in the ‘API Details’ section.
- Click Save.