Skip to main content

iOS

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.

🏗 Installation

The Gleap SDK uses CocoaPods to install and manage dependencies. Open a terminal window and navigate to the root folder of your iOS project.

Install the Gleap SDK

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:

https://github.com/GleapSDK/Gleap-iOS-SDK

Now select the Gleap package and hit Add package to add the Gleap SDK to your project.

Gleap package for Swift Package Manager

Initialize the SDK

Open your project in XCode and navigate to your app delegate or main App class when using SwiftUI.

Import the Gleap SDK

Add the following import under your other imports.

import Gleap

Initialize the SDK

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).

Gleap.initialize(withToken: "API-TOKEN")

Congratulations 🎉 You are now all set 👋

🤝 Need help?

We are here to help! [email protected]