Platform SDKs
Find SDK installation guides for iOS, Android, React Native, and Flutter.
Platform SDKs
Setgreet provides native SDKs for the four major mobile platforms. Each SDK is published on GitHub with full installation and integration documentation.
Supported platforms
| Platform | Language | Minimum version | Installation | Repository |
|---|---|---|---|---|
| iOS | Swift | iOS 15.0+ | Swift Package Manager, CocoaPods | setgreet-ios-sdk |
| Android | Kotlin | Android 6.0+ (API 23) | Maven Central (Gradle) | setgreet-android-sdk |
| React Native | TypeScript | React Native 0.60+ | npm / yarn | setgreet-react-native-sdk |
| Flutter | Dart | Flutter 3.0+ | pub.dev | setgreet-flutter-sdk |
Quick installation
iOS (Swift Package Manager)
In Xcode, add a Swift package with the URL:
https://github.com/setgreet/setgreet-ios-sdk.gitOr add it to your Package.swift:
dependencies: [
.package(url: "https://github.com/setgreet/setgreet-ios-sdk.git", .upToNextMajor(from: "LATEST_VERSION"))
]Android (Gradle)
Add the dependency to your app-level build.gradle.kts:
dependencies {
implementation("com.setgreet:setgreet:LATEST_VERSION")
}React Native (npm)
npm install @setgreet/react-native-sdkOr with yarn:
yarn add @setgreet/react-native-sdkFlutter (pub.dev)
Add to your pubspec.yaml:
dependencies:
setgreet: ^1.0.0Then run:
flutter pub getInitialization
After installing the SDK, initialize it on app launch with your App Key (found in the dashboard in your app's settings):
// iOS - in AppDelegate or App init
Setgreet.shared.initialize(appKey: "your_app_key", config: SetgreetConfig())// Android - in Application.onCreate()
Setgreet.initialize(context, "your_app_key")// React Native - in App.tsx or index.js
import { initialize } from '@setgreet/react-native-sdk';
initialize('your_app_key');// Flutter - in main.dart
import 'package:setgreet/setgreet.dart';
await Setgreet.initialize(appKey: 'your_app_key');Each GitHub repository contains a complete integration guide with detailed setup instructions, example projects, and troubleshooting tips. Start there for platform-specific guidance.
What each SDK includes
All platform SDKs share the same core capabilities:
- Flow rendering -- fully native UI components with flexbox layout.
- User identification --
identifyUser,resetUser, and attribute management. - Event tracking -- custom events (
trackEvent) and screen views (trackScreen). - Trigger evaluation -- local, on-device condition matching.
- Analytics collection -- automatic tracking of views, completions, and interactions.
- Offline support -- flows are cached locally and events are queued for delivery.
- Flow callbacks -- lifecycle events for integrating with your app logic.
Next steps
- User Identification -- learn how to identify users and set attributes.
- Event Tracking -- track custom events for triggering and analytics.
- Displaying Flows -- control how and when flows appear.