---
title: Install Sahha SDK for Flutter
---


Set up your platform projects and add the Sahha SDK to your Flutter app.

---

## Prerequisites

{% callout title="Your project must support:" %}

- **iOS:** iOS 15 or above, Swift 5 or above
- **Android:** compileSdk 36 or above, Kotlin 1.9.24 or above — see [full Android requirements](/docs/connect/sdk/installation/android#prerequisites)

{% /callout %}

---

## Set Up Platform Projects

Flutter apps target both iOS and Android, so you need to complete the platform-specific setup for each. These guides cover Xcode capabilities, manifest permissions, and everything your project needs before the SDK can collect health data.

{% action-cards %}

{% action-card title="iOS Platform Setup" icon="apple-logo" href="/docs/connect/sdk/installation/ios#set-up-xcode-project" description="Enable HealthKit, background delivery, background processing, and add usage descriptions in Xcode" /%}

{% action-card title="Android Platform Setup" icon="android-logo" href="/docs/connect/sdk/installation/android#set-up-android-project" description="Add Health Connect permissions to your AndroidManifest.xml" /%}

{% /action-cards %}

---

## Install the Library

Add `sahha_flutter` as a dependency in your `pubspec.yaml`:

[View Sahha Flutter SDK on pub.dev](https://pub.dev/packages/sahha_flutter)

```yaml title="pubspec.yaml"
dependencies:
  flutter:
    sdk: flutter

  sahha_flutter:
    git:
      url: git://github.com/sahha-ai/sahha_flutter.git
```

Then install the package:

```shell-session title="Terminal"
$ flutter pub get
```

### Install the native iOS pod

{% callout title="Install CocoaPods" %}

You need CocoaPods to install the native iOS library. Visit [CocoaPods](https://cocoapods.org/) to install it if you don't have it yet.

{% /callout %}

```shell-session title="Terminal"
$ cd ios && pod install && cd ..
```

---

## Import the Module

Import `sahha_flutter` in any Dart file where you use the SDK:

```dart title="main.dart"
import 'package:sahha_flutter/sahha_flutter.dart';
```

---

## Next Steps

Continue to [Step 2) Configure Settings](/docs/connect/sdk/configuration) to set your environment and notification preferences.
