# iOS: APNS Setup

This guide provides instructions on how to obtain the necessary values for configuring APNS.

* Key (in the form of a .p8 file extension)
* Key ID
* Team ID
* Bundle Identifier (can be verified in Xcode)

## 1. Requirements

{% hint style="info" %}
Before proceeding to the next step, make sure that the identifier has been registered.
{% endhint %}

Check if the identifier for the app you are developing is in the list on the Apple Developer's [Identifiers page](https://idmsa.apple.com/IDMSWebAuth/signin?appIdKey=891bd3417a7776362562d2197f89480a8547b108fd934911bcbea0110d07f757\&path=%2Faccount%2Fresources%2Fidentifiers%2Flist\&rv=1). If you have been developing with the same Apple account in Xcode, it should have been registered automatically.&#x20;

If it is not in the list, be sure to register it before proceeding to the next step.

## 2. Create Push Notification Keys (Key, Key ID)

1. Create a key with "Apple Push Notifications service" enabled on the Apple Developer's [Key page](https://idmsa.apple.com/IDMSWebAuth/signin?appIdKey=891bd3417a7776362562d2197f89480a8547b108fd934911bcbea0110d07f757\&path=%2Faccount%2Fresources%2Fauthkeys%2Flist\&rv=1).<br>

<figure><img src="https://4151189289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSJ35x4PFzaneH3SrvcBt%2Fuploads%2FvFXBgq9iyiYAUf60MHsi%2Fimage.png?alt=media&#x26;token=e927982c-a98d-4dc7-807e-2ca8b328fc40" alt=""><figcaption></figcaption></figure>

2. Once the key is created, download the .p8 file and copy the Key ID for future reference.

<figure><img src="https://4151189289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSJ35x4PFzaneH3SrvcBt%2Fuploads%2FamzWoZ7aN9B6ig8ujOxF%2Fimage.png?alt=media&#x26;token=3f8d3272-3b0f-4adf-91ca-dbed61017f56" alt=""><figcaption></figcaption></figure>

## 3. Check Team ID

You can find your Team ID on the Apple Developer's [Membership page](https://idmsa.apple.com/IDMSWebAuth/signin?appIdKey=891bd3417a7776362562d2197f89480a8547b108fd934911bcbea0110d07f757\&path=%2Faccount%2F\&rv=1#!/membership).

<figure><img src="https://4151189289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSJ35x4PFzaneH3SrvcBt%2Fuploads%2FprfaWAEBBd0GawXbPFiz%2FScreenshot%202023-10-04%20at%206.53.31%20PM.png?alt=media&#x26;token=d93d2d49-fd82-4d67-a71e-00ea55269b55" alt=""><figcaption></figcaption></figure>

## 4. Setup FlareLane

At FlareLane **Channels** > **App Push > Push Certificate > APNS input fields**, enter the information obtained in Step 2.

<figure><img src="https://4151189289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSJ35x4PFzaneH3SrvcBt%2Fuploads%2FX1OzAB3Oc5oMxuTPzXfc%2Fimage.png?alt=media&#x26;token=cddf8307-c815-44b8-a9dd-d4d342ca4e0f" alt=""><figcaption></figcaption></figure>
