Learn how to integrate the Sahha SDK into your Flutter project
Step 1) Add Flutter Package Dependency
sahha_flutter as a dependency in your
dependencies: flutter: sdk: flutter
sahha_flutter: git: url: git://github.com/sahha-ai/sahha_flutter.git
Step 2) Install Flutter Package
flutter pub get inside the root folder of your Flutter project.
$ flutter pub get
Step 3) Setup iOS Project
Follow these additional steps to install the Sahha SDK in your iOS project.
You will need to install CocoaPoads before you can install the Sahha SDK to your iOS project.
Visit Cocoapods to learn how to install CocoaPods.
Install Sahha Pod
pod install from the
Terminal app in your project root folder.
$ pod install
You will need to edit your Xcode project settings to enable the Sahha SDK.
View the Xcode Project Settings in the iOS-installation guide to configure
Step 4) Setup Android Project
Android Sensor Permissions
You will need to add sensor permissions for the Sahha SDK in your Android project.
Step 5) Import Sahha Package
sahha_flutter package into any files inside your Flutter project that use the SDK.