The Gleap SDK for iOS 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.io.
The Gleap SDK supports the Swift Package Manager and CocoaPods.
To get started, open your Xcode project and select File > Add packagesβ¦Now you need to paste the following package URL to the search bar in the top right corner. Hit enter to confirm the search.Package URL:
Copy
https://github.com/GleapSDK/Gleap-iOS-SDK
Now select the Gleap package and hit Add package to add the Gleap SDK to your project.
The last step is to initialize & configure the Gleap SDK by adding the following code to the end of your applicationDidFinishLaunchingWithOptions delegate or init() method of your main app (SwiftUI).
In order to use the image picker for attachments, add the following permissions to your Info.plist.
Copy
<key>NSPhotoLibraryUsageDescription</key> <string>We need access to your photo library to allow you to select an image.</string> <key>NSCameraUsageDescription</key> <string>We need access to your camera to take photos.</string>
The following permissions are needed to enable audio recordings.
Copy
<key>NSMicrophoneUsageDescription</key> <string>We need access to your microphone to record audio with videos.</string>