Supported platforms
✅ iOS | ✅ Android | ✅ Web |
---|
🏗 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:
Flutter v2 Support
If you are using Flutter < v3, please import the gleap_sdk as shown below:iOS installation
Navigate to your iOS project folder within the terminal and update your cocoapods by running:Android installation
Android should be already good to go. If theres a version conflict pls add the following to your android manifest: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.
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
.