First complete Prepare your Apple Developer account. 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.