π Installation
Installing the Gleap SDK takes only a few seconds.- Capacitor 7 or later
- Capacitor 6
- Capacitor 5
- Capacitor 4 or earlier
Install the Gleap package via npm.Sync your capacitor dependencies:
Initialize the Gleap SDK by adding the following code to your index.js/.tsx file or main component.
iOS
The plugin needs Capacitor 7 or later and an iOS deployment target of 15.0 or higher. On iOS it is a Swift package that pulls the native Gleap iOS SDK from GitHub; it still ships a podspec for apps that use CocoaPods.Swift Package Manager (recommended). New apps:npx cap add ios --packagemanager SPM. Existing CocoaPods apps can move with npx cap spm-migration-assistant once all their plugins support SPM (see Capacitor: Swift Package Manager). Set the app targetβs iOS deployment target to 15.0 in Xcode, then run npx cap sync ios again so CapApp-SPM/Package.swift declares iOS 15 as well.CocoaPods. Set platform :ios, '15.0' in ios/App/Podfile and run npx cap sync ios.Initialize the Gleap SDK by adding the following code to your index.js/.tsx file or main component.
/ Capacitor
WebView console and network logs and dark mode (SDK v19.0.0) need the Capacitor 7 plugin (
capacitor-gleap-plugin).Congrats! You are now all set π Report your first bug by using the feedback
button
π 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.