Skip to main content
The Gleap SDK for Flutter is the easiest way to integrate Gleap into your apps. Communicate with your users directly and build better software by discovering their everyday pain points. Gleap is your all-in-one customer feedback tool for apps and websites. For the SDK to work, you need an API key, which you can get for free at app.gleap.ai.

Supported platforms

๐Ÿ— Installation

Open a terminal window and navigate to the root folder of your iOS project.

Install the Gleap SDK

Run this command to add Gleap to your dependencies:

Requirements

gleap_sdk 19 needs Dart 3.3 / Flutter 3.19 or newer, iOS 15 or newer and Android minSdkVersion 21 or higher.

iOS installation

gleap_sdk needs an iOS deployment target of 15.0 or higher. On iOS it is a Swift package (ios/gleap_sdk/Package.swift) that pulls the native Gleap iOS SDK from GitHub; it still ships a podspec for apps that use CocoaPods. Flutter picks one of the two for you.

Android installation

Android should be already good to go. If theres a version conflict pls add the following to your android manifest:
Important: Always have a look at your minSdkVersion on android and your minimum target version on iOS to keep them on the same minimum version gleap needs.
Do not set android:hardwareAccelerated="false" at the application level in your AndroidManifest.xml. This can cause issues with the Gleap SDK on Android. If you need to disable hardware acceleration, consider applying it only to specific activities instead.

Web installation

Navigate to your web project folder and insert the following snippet as first element within the head tag of your index.html
Please note that you must need to run flutter clean and flutter pub get after adding the Gleap script to your index.html file.

Configure the SDK

The last step is to initialize & configure the Gleap SDK by adding the following code. If you want to add the Gleap SDK in your main.dart make sure to call WidgetsFlutterBinding.ensureInitialized(); before you initialize the Gleap SDK.
Congratulations ๐ŸŽ‰ You are all set ๐Ÿ‘‹

๐ŸŒ Data region

Gleap stores and processes your data in the region you selected at signup: EU (default) or US. If your project lives in the US region, select the region before initializing the SDK (requires SDK v18.0.0 or newer). EU projects donโ€™t need this call.
See Data regions for all hosts and details.

Required permissions (Android)

In order to use the image picker for attachments, add the following permissions to your AndroidManifest.xml.
The following permissions are needed to enable audio recordings.

Required permissions (iOS)

In order to use the image picker for attachments, add the following permissions to your Info.plist.
The following permissions are needed to enable audio recordings.

๐Ÿค Need help?

We are here to help! hello@gleap.ai