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.
- Swift Package Manager (recommended)
- CocoaPods
Needs Flutter 3.41 or newer (the pluginโs package depends on the Or turn it on for the project in your appโs Set the Runner targetโs Minimum Deployments to 15.0 in Xcode, otherwise Xcode reports that
FlutterFramework package that Flutter generates since 3.41) and Xcode 15 or newer. From Flutter 3.44 Swift Package Manager is on by default: run flutter run or flutter build ios and Flutter adds the integration to your Xcode project. On Flutter 3.41 to 3.43 turn it on first:pubspec.yaml:gleap-sdk requires iOS 15.0. See Swift Package Manager for app developers for details.Android installation
Android should be already good to go. If theres a version conflict pls add the following to your android manifest: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.htmlflutter 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 callWidgetsFlutterBinding.ensureInitialized(); before you initialize the Gleap SDK.
๐ 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.Required permissions (Android)
In order to use the image picker for attachments, add the following permissions to yourAndroidManifest.xml.
Required permissions (iOS)
In order to use the image picker for attachments, add the following permissions to yourInfo.plist.