Configure APNs credentials so your Rails server can send push notifications to iOS devices. If you haven't yet, set up the Rails side first.
To send push notifications, you need an APNs key from your Apple Developer account. This is a separate key from the App Store Connect API key used for builds.


After registering, you'll see a confirmation page with your Key ID (a 10-character string) and a Download button for the .p8 file.

Important: Apple only lets you download the .p8 file once. If you lose it, you'll need to revoke the key and create a new one.
A single APNs key works for every app under your Apple Developer team. You don't need to create a new one per app. APNs keys also never expire.
The installer creates config/push.yml. Add your Apple credentials so the gem can send notifications through APNs:
# config/push.yml
shared:
apple:
key_id: <%= Rails.application.credentials.dig(:apns, :key_id) %>
team_id: <%= Rails.application.credentials.dig(:apns, :team_id) %>
topic: com.yourcompany.yourapp
encryption_key: <%= Rails.application.credentials.dig(:apns, :encryption_key)&.dump %>
.p8 file.