APNS Auth Keys
APNS Auth keys are the recommended method to enable sending push notifications to your app installed on iOS devices.
To send push notifications to iOS users, it is required to generate the APNs Auth Key file for your application and upload it to the MoEngage dashboard.
Steps to create APNS Auth Key
To create an APNS auth key, you will need to do the following:
Step 1:
Visit the Apple Developer Member Center and sign in with your credentials.
Step 2:
Select the Certificates, Identifiers & Profiles on the left pane.
Step 3:
On the certificates page, click on 'Keys' on the left pane as shown below.
Step 4:
In the Keys page that opens, click on the '+' icon to create a new auth key.
Step 5:
In the 'Register a New Key' page that opens, enter the key name and choose the Apple Push Notifications Service (APNS) in the list available below.
Step 6:
Click on the Register Button.
The Download your Keys page opens.
Step 7:
Click on Download to download your Auth key file. Please note that you can download the auth key file only once.
Step 8:
Copy the Key ID (highlighted in the image above) available on the download page. This is required to configure push notifications in the MoEngage dashboard.
Once added, the Auth Key is listed under Keys as shown below.
Configuring the Auth key in the Dashboard
The following details are necessary to configure the APNS authentication key in the MoEngage Dashboard.
Navigation to Dashboard:
- Navigate to Settings > Channels > Push > App Push.
- Select iOS (APNS) in the Platforms available on the menu at the top.
- Navigate to Settings > Channels > Push > Mobile Push.
- Select iOS in the Platforms available on the menu on the left.
APNS Authentication Key File
The APNS Authentication Key File downloaded using the steps mentioned above needs to be uploaded to the dashboard.
Team ID
To get the Team ID details, click on the account name in the top right corner, then select View Account. The following screen is displayed. Copy the Team ID from here.
Key ID
As explained in step 8 above, the Key ID is available when you generate the APNS auth key.
Bundle ID
The App Bundle Identifier is case-sensitive and available in Xcode. Refer to the screenshot below to get the Bundle ID in Xcode.
Bundle ID for iPad
If you have different apps for iPhone and iPad, upload a different bundle ID for iPad. It is available in the Xcode for the iPad app.