Configuring iOS Push Credentials (APNs)
Configure iOS Push Credentials (APNs)
To send push notifications to iOS devices, Attentive authenticates with Apple's Push Notification service (APNs) on your behalf using token-based authentication. You'll need to generate a .p8 auth key from your Apple Developer account — unlike certificates, auth tokens don't expire and a single token works across all of your apps.
Before you begin, make sure you have access to your Apple Developer account.
You'll need to collect the following four credentials:
- .p8 file — the private key file used to sign push notification requests
- Bundle ID — identifies your specific app
- Key ID — identifies the APNs auth key you create
- Team ID — identifies your Apple Developer organization
Step 1: Locate Your Team ID and Bundle ID
- Sign in to the Apple Developer portal.
- To find your Team ID, click Account in the top nav, then go to Membership details. Your Team ID is the 10-character alphanumeric string listed there.
- To find your Bundle ID, go to Certificates, Identifiers & Profiles → Identifiers in the left nav.
- Select your app from the list.
- Record the Bundle ID shown on the app's configuration page (e.g.,
com.example.myapp). - While you're here, confirm that Push Notifications is checked under Capabilities. If it isn't, enable it and save before continuing.
Tip: If you have multiple apps (e.g., a staging and production version), make sure you're capturing the Bundle ID for the app you intend to send push notifications from.
Step 2: Create Your APNs Auth Key
- In the Apple Developer portal, go to Certificates, Identifiers & Profiles → Keys in the left nav.
- Click the + button in the top right to create a new key.
- Give the key a descriptive name (e.g.,
Attentive Push Key). - Check the box next to Apple Push Notifications service (APNs).
Important: Make sure the environment is set to Production & Sandbox (not Sandbox only). Attentive requires a key that works across both environments.
- Click Continue, review the summary, then click Register.
- On the confirmation page, copy and save the Key ID — you'll need this later.
- Click Download to save the
.p8file to your machine.
Important: You can only download the.p8file once. Apple does not store a copy. Save it somewhere secure immediately — if you lose it, you'll need to revoke the key and create a new one.
Step 3: Enter Your Credentials in Attentive
- In Attentive, navigate to Setup → Settings → Mobile App Settings.
- Select the iOS (APNs) tab.
- Under APNs Key Upload, upload your
.p8file. - Enter your Bundle ID, Key ID, and Team ID in the corresponding fields.
- Click Save Settings.