Skip to content
Getting Started

Install the SDK

Add the Setgreet SDK to your mobile app.

Install the SDK

The Setgreet SDK is responsible for fetching published flows from the API, evaluating trigger conditions on the device, and rendering matching flows using fully native UI components. It is lightweight, runs on the main thread only when rendering, and requires minimal configuration.

Supported platforms

PlatformMin. versionPackage managerRepository
iOSiOS 15+Swift Package Managersetgreet-ios-sdk
AndroidAPI 23+Gradle (Maven Central)setgreet-android-sdk
React NativeRN 0.60+npm / yarnsetgreet-react-native-sdk
FlutterFlutter 3.0+pub.devsetgreet-flutter-sdk

Each SDK repository contains a detailed README with installation instructions, initialization code, and API reference. Follow the guide for your platform below.

Installation overview

Regardless of platform, the integration follows the same three steps:

1. Add the dependency

Add the Setgreet SDK package to your project using the platform's standard package manager. See the repository README for the exact dependency declaration.

2. Initialize the SDK

Call the Setgreet initializer early in your app's lifecycle (typically in AppDelegate, Application.onCreate, or your root component) and pass your App Key:

// Pseudocode -- see the platform README for real syntax
Setgreet.initialize(appKey: "YOUR_APP_KEY")

3. Identify the user

Once you know who the current user is (after login, or from a stored session), identify them so that Setgreet can evaluate targeting conditions and track analytics per user:

// Pseudocode
Setgreet.identifyUser(userId: "user-123", attributes: {
  plan: "pro",
  signupDate: "2026-01-15"
})

User attributes you pass here become available for flow triggers and personalization in the dashboard.

You can call identifyUser with additional attributes at any time. The SDK merges new attributes with existing ones.

Platform-specific guides

For full installation instructions, configuration options, and troubleshooting, refer to the README in each SDK repository:

Next step

With the SDK installed and initialized, head back to the dashboard to create your first flow.

On this page