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

# Android Setup

> Android Setup — Zixflow React Native SDK integration guide.

### Gradle Configuration

The React Native auto-linking will handle most of the Android setup. However, you need to ensure the following:

1. **Set minimum SDK version** in `android/build.gradle`:

```gradle theme={null}
buildscript {
    ext {
        minSdkVersion = 24
        compileSdkVersion = 34
        targetSdkVersion = 34
    }
}
```

2. **Add Maven repositories** in `android/build.gradle`:

```gradle theme={null}
allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
    }
}
```

The Zixflow Android SDK will be automatically included via the React Native module.

### Firebase Cloud Messaging Setup

To enable **Firebase Cloud Messaging (FCM)** for push notifications on Android:

1. **Add Firebase to your project**:
   * Go to [Firebase Console](https://console.firebase.google.com/)
   * Add your Android app
   * Download `google-services.json` and place it in `android/app/`

2. **Add Google Services plugin** in `android/build.gradle`:

```gradle theme={null}
buildscript {
    dependencies {
        classpath 'com.google.gms:google-services:4.4.2'
    }
}
```

3. **Apply the plugin** in `android/app/build.gradle`:

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

4. **Configure FCM in the SDK** (shown in the initialization section below).

***
