> ## 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.

# Configure iOS push notifications

> Connect an APNs .p8 key to OneSignal so it can send push notifications to iOS devices.

Configure Apple Push Notification service (APNs) for your OneSignal app. OneSignal recommends an APNs token-based `.p8` key.

<Steps>
  <Step title="Create an APNs key in Apple Developer">
    In your Apple Developer account, go to **Certificates, Identifiers & Profiles → Keys** and create a new key. Enable **Apple Push Notifications service (APNs)** for both Sandbox and Production.
  </Step>

  <Step title="Download the .p8 key">
    Register the key and download the `.p8` file. Apple lets you download it only once, so store it securely.
  </Step>

  <Step title="Open Apple iOS settings in OneSignal">
    In OneSignal, go to **Settings → Push & In-App → Apple iOS (APNs) Settings** and choose **.p8 Auth Key**.
  </Step>

  <Step title="Add the APNs details">
    Upload the `.p8` file, then enter its **Key ID**, your Apple Developer **Team ID**, and your app's **Bundle ID**.
  </Step>

  <Step title="Save the configuration">
    Save and continue in OneSignal. Your iOS platform is ready to deliver push notifications once the app is connected to Rey and published.
  </Step>
</Steps>

<Warning>
  The APNs `.p8` 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.
</Warning>
