> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reyapp.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up iOS push notifications

> Add Apple's push-notification credentials in OneSignal so it can send messages to iOS users.

Apple calls its push-notification service **APNs**. On this page, you will add Apple's push-notification credentials to OneSignal so it can send messages to iOS users.

> [!NOTE]
>
> First complete [Prepare your Apple Developer account](https://docs.reyapp.io/integrations/onesignal/apple-developer-account.md). That page creates the Apple identifiers and App Group that OneSignal needs.

**1. Create an Apple push-notification key**

In your Apple Developer account, go to **Certificates, Identifiers & Profiles → Keys** and create a new key. Enable **Apple Push Notifications service (APNs)**. This is Apple's name for the credential OneSignal uses to deliver notifications.

**2. Download the .p8 key**

Register the key and download the `.p8` file. Apple lets you download it only once, so store it securely.

**3. Open iOS push-notification settings in OneSignal**

In OneSignal, go to **Settings → Push & In-App → Apple iOS (APNs) Settings** and choose **.p8 Auth Key**.

**4. Add your Apple credentials**

Upload the `.p8` file, then enter its **Key ID**, your Apple Developer **Team ID**, and your app's **Bundle ID**.

**5. Save the configuration**

Save and continue in OneSignal. Your iOS push-notification setup is ready once the app is connected to Rey and published.

> [!WARNING]
>
> The `.p8` push-notification key is not the App Store Connect API key. Do not swap the Key ID and Team ID; both are 10-character values, but they identify different things.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.