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

# Platform Setup

> Configure iOS and Android platforms for push notifications with PNTA Flutter plugin

## iOS Setup

### 1. Xcode Configuration

1. Open `ios/Runner.xcworkspace` in Xcode
2. Select your app target and go to "Signing & Capabilities"
3. Add "Push Notifications" capability
4. Add "Background Modes" capability and enable "Remote notifications"

Your `ios/Runner/Info.plist` should include:

```xml ios/Runner/Info.plist theme={null}
<key>UIBackgroundModes</key>
<array>
    <string>remote-notification</string>
</array>
```

### 2. Plugin Integration

**Automatic!** The plugin integrates automatically when you run:

```bash theme={null}
flutter pub get
cd ios && pod install
```

<Info>
  **No manual Podfile configuration needed** - Flutter generates the standard Podfile automatically.
</Info>

## Android Setup

### 1. Firebase Configuration

1. Go to the [Firebase Console](https://console.firebase.google.com/)
2. Create a new project or select an existing one
3. Register your Android app using your package name (e.g., `com.example.your_app`)
4. Download `google-services.json` and place it at `android/app/google-services.json`

### 2. Gradle Configuration

**Project-level `android/build.gradle`:**
Add to the `buildscript { dependencies { ... } }` block:

```gradle android/build.gradle theme={null}
classpath 'com.google.gms:google-services:4.3.15' // or latest version
```

**App-level `android/app/build.gradle`:**
Add at the very bottom:

```gradle android/app/build.gradle theme={null}
apply plugin: 'com.google.gms.google-services'
```
