In this story
Where: Settings → Readers & money → Connections → Notifications (iOS app (Apple) section)
Open this page: admin.<your-site>/settings/connections/notifications#kn-push-apns (replace <your-site> with your site address)
Before you start
- You need an Apple Developer account and an iPhone app. Only the owner can change keys.
Steps
- In Apple Developer, open Certificates, Identifiers & Profiles, Keys and press +.
- Name the key, tick Apple Push Notifications service (APNs), press Continue, then Register.
- Download the .p8 file.
- Copy the Key ID (on the key's page) and your Team ID (Membership details). Both are 10 characters.
- In Keynate, open Settings → Readers & money → Connections → Notifications (iOS app (Apple) section).
- Add the APNs key (.p8): choose the file or paste its text.
- Enter Key id, Team id and Bundle id, for example com.yoursite.news.
- Choose the Environment: Production (App Store) or Sandbox (test builds).
- Turn on Send to iPhone and iPad and save.
- Send a test, then rebuild your app.
Common problems
- "This isn't an APNs .p8 key. It starts with "BEGIN PRIVATE KEY"."
- "Add the .p8 key file, or turn this off."
- "Key id and Team id are 10 characters."
- "Enter your app's bundle id, e.g. com.yoursite.news."
Questions
Frequently asked questions
Which environment should I choose?
Production for TestFlight and App Store apps. Sandbox for apps installed from Xcode.
Can I download the Apple key again?
Apple lets you download it only once, so keep it safe.