To create an APNS key for push notifications on iOS devices, you’ll need to generate a private key so that devices using your app can receive push notifications. Private keys are commonly used for iOS push notifications with Firebase. When you want to use FCM (Firebase Cloud Messaging), creating a key is mandatory for iOS devices to receive push notifications.
Here are the steps to create an APNS key:
- First, access the following link [link here] and navigate to “Certificates, Identifiers & Profiles” to create a new key.
In “Certificates, Identifiers & Profiles,” click on “Keys” and then select “Create a key.”
In the “Register a new key” section, enter a name for the key (you can choose any name you like) and check the “APNs” box.
Click Continue
The new key will be registered. Click the “Register” button to confirm the registration.
At this point, you need to download the key and save it in a secure location. After downloading the key, click “Done.”
Your key has now been successfully created.
Click on the key to view its details.
Then, go to Firebase and enter the APNS key information for your iOS app.