---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://appmetrica.yandex.by/docs/en/sdk/ios/push/ios-settings.md
  - https://appmetrica.yandex.by/docs/ru/sdk/ios/push/ios-settings.md
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.by/docs/en/llms.txt

# Configuring an iOS application to send push notifications

The Universal Push Notification Client SSL Certificate is required for sending push notifications to iOS apps. To get this certificate, you need to specify your app's identifier (App ID). You can [create one in the Apple Developer Console](https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingProfiles/MaintainingProfiles.html).

If you already have an App ID, request a certificate.

## Step 1. Request a certificate {#request}

1. Open **Keychain Access** on your computer.
2. Go to **Keychain Access** → **Certificate Assistant** → **Request a Certificate From a Certificate Authority** and enter the required information. Pay attention to the password. You will need it when setting up the certificate in the AppMetrica interface.
3. Under **Request is**, enable the **Saved to disk** option and click **Continue**.
4. Save the request file on your computer and click **Done**.

## Step 2. Get a certificate {#get}

1. In the Apple Developer Console, go to [Certificates, Identifiers & Profiles](https://developer.apple.com/account/ios/certificate).
2. In the left menu, go to the **Certificates** section.
3. Select **Production** and click plus to add new certificate.
4. In the **Services** block enable the **Apple Push Notification service SSL (Sandbox & Production)** option and click **Continue**.
5. In the **App ID** drop-down list, select the app ID that needs a certificate, and click **Continue**. The selected **App ID** must match your **bundle ID**.
6. Since the certificate request has already been sent, click **Continue**.
7. Click **Choose file**. In the window that opens, select the certificate request file (for example, `example.certSigningRequest`) and click **Choose**, then **Continue**.
8. Click **Download** to download the certificate. Then click **Done**.
9. Double-click the file to install the certificate.

## Step 3. Export a Private Key from the installed certificate {#export}

1. Open Keychain Access on your computer and choose **Certificate Assistant** in the menu.
2. In the list, select the certificate that you installed.
3. Choose **File** → **Export Items** in the menu. Then enter a name for the file to export and set the format to Personal Information Exchange (P12). Click **Save**.
4. In **Password**, set a password for the key and click **OK**. If you don't set a password, the certificate won't be accepted in the AppMetrica interface.
5. To activate the export, enter the password for your computer. Then click **Allow**. The P12 file is saved on your computer.

## Step 4. Use the Private Key in AppMetrica {#use}

1. In the AppMetrica interface, go to the [Applications](https://appmetrica.yandex.com/application/list) section and select the app that you want to run push campaigns for.
2. In the menu on the left, select **Settings**.
3. Go to the **Push notifications** tab.
4. Under **iOS**, click **Choose file** (next to **Universal Push Notification Client SSL Certificate**).
5. In the window that opens, select the key file in P12 format and upload it.
6. In **Password**, enter the password you set when saving the key (step 3).

## Learm more {#learn-more}

- [Connecting the AppMetrica Push SDK](https://appmetrica.yandex.by/docs/en/sdk/ios/push/quick-start.md)
- [Launching a push campaign](https://appmetrica.yandex.by/docs/en/push/marketing.md)

<!-- source: en/_includes/feedback-button-3.md -->
If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.

<a href="../../../troubleshooting/feedback-new">
  <span class="button">Contact support</span>
</a>

<a href="../../../troubleshooting/feedback-docs">
  <span class="button">Suggest an improvement for documentation</span>
</a>
<!-- endsource: en/_includes/feedback-button-3.md -->
