> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notifique.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure iOS

> How to add notification code to your iPhone app.

<Tip>
  Once Apple is set in the dashboard, **add the library and one line of code**, like ringing the doorbell after the key was handed to the doorman.
</Tip>

## In a few words

1. Set up Apple in the Notifique dashboard
2. Add the `NotifiquePush` library in Xcode
3. Call `configure` with your Push App ID
4. Test on a real iPhone

## Before you start

If Apple isn’t in the dashboard yet:

→ [iOS credentials (Apple)](/en/push-api/integracao/credenciais-ios)

You’ll need the **appId** (Push App screen) and push permissions enabled in Xcode.

## Step 1: Add the library

In Xcode, add the Swift package **NotifiquePush** (Swift Package Manager).

If unsure, ask your iOS developer to add it.

## Step 2: Start in the app

At app startup (e.g. in `App` or `AppDelegate`):

```swift theme={null}
import NotifiquePush

try await NotifiquePush.configure(appId: "YOUR_APP_ID")
```

Replace `YOUR_APP_ID` with the dashboard ID.

The app asks for notification permission and registers itself.

<Note>
  Don’t put API keys in the app. Only the public `appId`.
</Note>

## Step 3: Test

1. Run on a **physical iPhone** (simulator isn’t reliable for push)
2. Accept “Allow notifications”
3. Send a test alert from the Notifique dashboard

## Checklist

* [ ] Apple configured in ⚙️ dashboard
* [ ] Bundle ID matches on Apple, Xcode, and Notifique
* [ ] Push Notifications enabled in Xcode
* [ ] Code with correct `appId`
* [ ] Test on real iPhone

## Next steps

* [Apple credentials](/en/push-api/integracao/credenciais-ios)
* [Android](/en/push-api/integracao/android)
* [All guides](/en/push-api/integracao/index)
