Documentation > iOS

How to create an iOS APNs Auth Key

If you’d like to send push notifications to your iOS users, you will need to upload either an APNs Push Certificate, or an APNs Auth Key.

We recommend that you create and upload an APNs Auth Key for the following reasons:

  1. No need to re-generate the push certificate every year
  2. One auth key can be used for all your apps – this avoids the complication of maintaining different certificates

When sending push notifications using an APNs Auth Key, we require the following information about your app:

  1. Auth Key file
  2. Team ID
  3. Your app’s bundle ID

To create an APNs auth key, follow the steps below:

Visit the Apple Developer Member Centre

1

Click on “Certificates, Identifiers & Profiles”.

Go to Keys from the Left Menu.
Create a new Auth Key by clicking on the “+” button in the top right corner.
2

On the following page, add a Key Name, and select APNs

3

Hit the Continue button.

4

On this page, you will be able to download your auth key file. Please do not rename this file, and upload it as it is to our dashboard, as shown later below.

5

Locate and copy your Team ID – click on your name/company name at the top right corner, then select “View Account

6

Copy your Team ID, and head over to the CleverTap dashboard, and navigate to Settings -> Push -> iOS.

Upload the APNs Auth Key file while you downloaded earlier, and paste your Team ID and your app’s bundle ID. Your app’s bundle ID can be found in Xcode.
Also select the appropriate mode for sending push notifications, i.e. either Production or Development.
7