This guide explains how to configure and use the Apple Push Notification Service (APNS) with Novu to deliver push notifications to iOS devices. It outlines:
- The required setup in your Apple Developer account.
- The connection process in Novu.
- How to manage device tokens and message payloads.
Configuring APNS with Novu#
Before sending notifications, APNS must be configured with the correct credentials from your Apple Developer account. Novu uses these credentials to securely authenticate with Apple’s servers.
Obtain APNS credentials#
Apple provides two authentication options for connecting to APNS:
- A certificate-based
.p12certificate - A token-based
.p8key
Novu supports both, but this guide focuses on the .p8 token-based approach, which is recommended for most production setups.
To generate the required credentials, use an Apple Developer account with an Admin role. Follow Apple’s official steps to create and download a private .p8 key.
The following identifiers are also needed for integration:
- Key ID: A unique 10-character identifier for the authentication key.
- Team ID: This is found in your Apple Developer account.
- Bundle ID: The identifier for your app, which is available in the app info section.
Add APNS credentials to Novu#
Once the Apple credentials are available, you can add them in Novu’s Integration Store.
- Log in to your Novu account.
- On your dashboard, click Integration Store.
- Click Connect provider.
- Click the Push tab.
- Select APNS.
- In the APNS integration form, fill in the Name and Identifier fields.
- In the Delivery Provider Credentials section, fill in the following fields:
- Private Key: The content of your
.p8file. - Key ID: Your 10-character Key ID.
- Team ID: Your 10-character Team ID.
- Bundle ID: Your app’s Bundle ID.

- Private Key: The content of your
- Click Create Integration.
Sending notifications with APNS#
After configuration, APNS can be used in any Novu workflow that includes a Push step. The process involves registering device tokens for subscribers and then triggering workflows to deliver messages.
Registering subscriber device tokens#
Each subscriber (user) must have one or more device tokens registered to receive push notifications. Tokens can be added or updated through Novu’s API using the Update Subscriber Credentials endpoint.
Triggering workflows#
Once subscribers’ devices are registered, push notifications are delivered through workflows that include a Push step. A workflow can be triggered using the Novu SDK or API.
Push step content#
The Push step in the workflow editor has two content fields. Each one can hold static text or dynamic values using {{subscriber.*}} and {{payload.*}} variables, which Novu resolves at send time.
| Push step field | Delivered as | APNS payload key |
|---|---|---|
| Subject | Notification title | aps.alert.title |
| Body | Notification message | aps.alert.body |
For example, a step with the subject New comment from {{payload.authorName}} and the body {{payload.commentText}} is delivered to the device like this:
The Subject and Body you set in the step are the default title and body. You can replace them for a specific trigger by sending title or body under overrides.providers.apns, described below.
Customizing notifications with overrides#
Novu’s APNS integration is built on the @parse/node-apn library. When you pass overrides under providers.apns at trigger time, Novu forwards those fields to the library, which builds the notification payload (the aps dictionary) and sets the matching APNS request headers, such as apns-priority and apns-topic, for you.
You do not need to hand-build the aps dictionary or set raw headers yourself. Use the field names below and Novu maps them to the correct APNS payload keys and headers.
| Override field | Maps to | Type or values | Notes |
|---|---|---|---|
title | aps.alert.title | string | Overrides the push step title |
body | aps.alert.body | string | Overrides the push step body |
subtitle | aps.alert.subtitle | string | Secondary line under the title |
sound | aps.sound | string or object | Use "default" for the standard sound |
badge | aps.badge | number | App icon badge count |
category | aps.category | string | Actionable notification category |
threadId | aps.thread-id | string | Groups related notifications |
priority | apns-priority header | 10 (default) or 5 | 10 delivers immediately, 5 conserves device power. Use 10 for VoIP |
topic | apns-topic header | string | Defaults to your integration Bundle ID. For VoIP, use <bundle-id>.voip |
collapseId | apns-collapse-id header | string | Collapses notifications that share the same id. When you omit it, Novu sets this header to the Novu message id |
pushType | apns-push-type header | "alert", "background", or "voip" | Must match the payload contents. Use "voip" for CallKit / PushKit |
expiry | apns-expiration header | number (UNIX timestamp) | 0 tells APNS not to retry |
rawPayload | Full notification body | object | Sent as-is. Skips the usual aps / title / body mapping. Use this for CallKit payloads |
Anything you send in the trigger payload is delivered alongside the aps dictionary as the notification’s custom data, together with __nvMessageId. You usually do not need to override the payload to pass app-specific values. If you set rawPayload, that object becomes the entire body instead, and __nvMessageId is included only when that object contains it.
Here is an example that sets the sound and badge, and adjusts the apns-priority and apns-topic headers. The topic field is optional since it defaults to your integration Bundle ID:
Sending custom data#
Novu builds the aps dictionary for you from the fields in the table above. Any keys you send in the trigger payload are delivered at the root of the notification, next to aps, as your app’s custom data. You do not need a separate data field.
For example, triggering the workflow with this payload:
delivers the following notification to the device:
Because Novu generates the aps dictionary from the fields in the table above, an aps object nested inside a payload override is not applied. Use the fields above to shape aps, and the trigger payload to pass custom data.
VoIP pushes for CallKit and PushKit#
iOS incoming-call flows (CallKit / PushKit) need a true VoIP push. Apple requires:
apns-push-type: voipapns-topicset to your app’s VoIP topic (<bundle-id>.voip)- A PushKit VoIP device token (not the regular remote-notification token)
Novu supports this with APNS overrides (pushType, topic, rawPayload). Unlike email or SMS, a Push step does not let you pin the send to one integration with integrationIdentifier. It delivers through every active push integration that has device tokens for that subscriber, and overrides.providers.apns is applied to each APNS integration the same way.
Because of that, use a dedicated VoIP APNS integration and keep token types on the matching integration:
- Create an APNS integration used only for VoIP (for example identifier
apns-voip). Reuse the same.p8key, Key ID, and Team ID if you already have an alert integration. Set Bundle ID to your VoIP topic (com.example.app.voip), or keep the app Bundle ID and overridetopicat trigger time. - Register the PushKit VoIP token on that integration with
integrationIdentifier. Store regular remote-notification tokens only on your alert APNS integration, not on the VoIP one. - Trigger a workflow that includes a Push step, and set
pushType,topic, andrawPayloadunderoverrides.providers.apns.
If a subscriber has tokens on both APNS integrations, an incoming-call trigger still attempts delivery on the alert integration with the VoIP overrides. APNS rejects that attempt; the VoIP send can still succeed, and the rejected attempt appears in activity. The same cross-talk happens in reverse on alert workflows. There is no push equivalent of email/SMS integrationIdentifier override to send through only one integration.
Store the VoIP token on the VoIP integration:
Then trigger with VoIP overrides. rawPayload is the CallKit payload your app expects. When it is set, Novu sends that object as the full notification body (no generated aps.alert from the Push step Subject / Body, and no __nvMessageId). The message id is assigned at send time, so a trigger-time rawPayload cannot include it. The device has no id to report, and activity tracking does not apply to that push.
Passing raw APNS HTTP headers under _passthrough.headers (for example apns-push-type) is not supported for the native APNS provider. Use pushType, topic, and priority instead. Those map to the correct headers through @parse/node-apn.
Activity tracking#
APNs supports push activity tracking. Enable the Push Activity Tracking toggle on the APNs integration. Your app reads the Novu message id from the notification and forwards it as eventId.
Novu adds __nvMessageId beside aps, along with the trigger payload. On iOS, read it from the notification userInfo. This is separate from apns-collapse-id, which Novu also sets to the message id when you omit collapseId.
A rawPayload override replaces this body. The device then has no __nvMessageId to report.
Forward delivered, opened, dismissed, or failed the same way when your app observes those events. Your backend then calls Novu’s activity endpoint.