# 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="/files/n5aIIxRjk8oV7NDhLYlr" 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="/files/ssOsaNIpRypuNqeA1Qfw" 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="/files/EwIZwBxXtEFA6rX117fx" 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="/files/4bw8s0jBbnZMdeEw5WXP" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.flarelane.com/guide-for-developers/mobile-sdk-setup/additional-setup/ios-apns-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
