Adapty is a powerful library that enables developers to integrate in-app purchases, subscriptions, and analytics into their iOS apps with ease. With Adapty, you can efficiently manage your app’s revenue, user retention, and conversion rates. This comprehensive documentation will guide you through the process of integrating Adapty into your app, explaining its key features and providing code snippets to get you started.


To install Adapty, follow these simple steps:

  1. Open your Xcode project
  2. Go to the “File” menu and select “Swift Packages”
  3. Click on “Add Package Dependency”
  4. Enter the repository URL:
  5. Choose the latest version of the SDK and click “Next”
  6. Specify the target where you want to integrate Adapty and click “Finish”

Adapty is now successfully installed in your project.

Getting Started

Before diving into the integration process, let’s first ensure you have access to the necessary resources:

  1. Obtain an Adapty API key from your Adapty account.
  2. Ensure you have a valid App Store Connect account and have set up in-app purchases and subscriptions.

With the above resources in place, you’re ready to start integrating Adapty into your app.


To initialize Adapty in your app, follow these steps:

  1. In your AppDelegate.swift file, import Adapty
  2. In your AppDelegate class, add the following code:

import Adapty

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  Adapty.activate(with: "YOUR_API_KEY") { (adaptyId) in
    if let adaptyId = adaptyId {
      print("Successfully initialized Adapty with ID: \(adaptyId)")
  return true

Make sure to replace “YOUR_API_KEY” with your actual Adapty API key.


Adapty offers a wide range of features to help maximize your app’s revenue and user engagement. Some of the key features include:

In-App Purchases

Adapty simplifies in-app purchase management, allowing you to validate purchases, handle introductory offers, and manage entitlements effortlessly.


With Adapty, you can easily handle subscriptions, including introductory offers, promotional offers, and cancellation insights. Adapty provides detailed analytics and metrics to monitor subscription performance and optimize revenue.

Analytics and A/B Testing

In addition to managing in-app purchases and subscriptions, Adapty offers powerful analytic and A/B testing capabilities. You can track important metrics such as conversion rates, churn, and retention, and perform A/B tests to optimize your app’s user experience.


Adapty is a versatile library that helps you effectively manage in-app purchases, subscriptions, and analytics in your iOS app. By following the integration steps outlined in this documentation, you can unlock the full potential of Adapty and enhance your app’s revenue and user engagement. If you have any further questions or need assistance with Adapty, please refer to the official documentation or reach out to our support team. Happy coding!